From: Fernando Vezzosi <hidden> Date: 2016-06-15 22:52:23
Enabling commit.verbose will make git commit behave as if --verbose was
passed on the command line.
Reviewed-by: Sverre Rabbelier <redacted>
Signed-off-by: Fernando Vezzosi <redacted>
---
Documentation/config.txt | 3 +++
builtin/commit.c | 4 ++++
2 files changed, 7 insertions(+), 0 deletions(-)
@@ -832,6 +832,9 @@ commit.template:: "{tilde}/" is expanded to the value of `$HOME` and "{tilde}user/" to the specified user's home directory.+commit.verbose::+ A boolean to enable verbose mode like the --verbose flag does.+ include::diff-config.txt[] difftool.<tool>.path::
On Sun, Nov 6, 2011 at 1:07 AM, Fernando Vezzosi [off-list ref] wrote:
Enabling commit.verbose will make git commit behave as if --verbose was
passed on the command line.
Is it necessary? If you want short command, you would use alias
instead of typing "commit". Adding --verbose to the alias to make the
command even shorter is straightforward.
--
Duy
From: SZEDER Gábor <hidden> Date: 2016-06-15 22:52:23
On Sat, Nov 05, 2011 at 07:07:35PM +0100, Fernando Vezzosi wrote:
quoted hunk
Enabling commit.verbose will make git commit behave as if --verbose was
passed on the command line.
Reviewed-by: Sverre Rabbelier <redacted>
Signed-off-by: Fernando Vezzosi <redacted>
---
Documentation/config.txt | 3 +++
builtin/commit.c | 4 ++++
2 files changed, 7 insertions(+), 0 deletions(-)
@@ -832,6 +832,9 @@ commit.template:: "{tilde}/" is expanded to the value of `$HOME` and "{tilde}user/" to the specified user's home directory.+commit.verbose::+ A boolean to enable verbose mode like the --verbose flag does.+
I just tried out this patch, and found that setting commit.verbose to
true also affects git commit's behavior when invoked from scripts
where you can't pass --verbose to git commit. I.e. the diff to be
committed is shown for git revert, interactive rebase's reword or
squash commands, or during 'git rebase --continue' after resolving a
conflict. I think this should be mentioned both in the commit message
and in the documentation.
Anyway, I like this change because I have a somewhat convoluted and
flaky combination of hooks and editor scripts to do the same, and now
I can finally get rid of them.
Best,
Gábor