OSDN Git Service

add 'merge.stat' config variable
authorSZEDER Gábor <szeder@ira.uka.de>
Sun, 6 Apr 2008 01:23:44 +0000 (03:23 +0200)
committerJunio C Hamano <gitster@pobox.com>
Sun, 13 Apr 2008 02:28:18 +0000 (19:28 -0700)
This variable has the same effect, as 'merge.diffstat'.
Also mention it in the documentation.

Signed-off-by: SZEDER Gábor <szeder@ira.uka.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/merge-config.txt
Documentation/merge-options.txt
git-merge.sh

index cc815cc..6d0a797 100644 (file)
@@ -1,3 +1,7 @@
+merge.stat::
+       Whether to print the diffstat berween ORIG_HEAD and merge result
+       at the end of the merge.  True by default.
+
 merge.summary::
        Whether to include summaries of merged commits in newly created
        merge commit messages. False by default.
index 7904172..d4af5e2 100644 (file)
@@ -1,6 +1,6 @@
 --stat::
        Show a diffstat at the end of the merge. The diffstat is also
-       controlled by the configuration option merge.diffstat.
+       controlled by the configuration option merge.stat.
 
 -n, \--no-stat::
        Do not show diffstat at the end of the merge.
index 0b15924..793c015 100755 (executable)
@@ -212,6 +212,7 @@ while test $args_left -lt $#; do shift; done
 
 if test -z "$show_diffstat"; then
     test "$(git config --bool merge.diffstat)" = false && show_diffstat=false
+    test "$(git config --bool merge.stat)" = false && show_diffstat=false
     test -z "$show_diffstat" && show_diffstat=t
 fi