Skip to content

Commit

Permalink
add 'merge.stat' config variable
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
SZEDER Gábor authored and Junio C Hamano committed Apr 13, 2008
1 parent d8abe14 commit 3e6c0a3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Documentation/merge-config.txt
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion Documentation/merge-options.txt
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
1 change: 1 addition & 0 deletions git-merge.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 3e6c0a3

Please sign in to comment.