Skip to content

Commit

Permalink
rebase: only show stat if configured to true
Browse files Browse the repository at this point in the history
If rebase.stat is set to true, a diffstat should be displayed. If it is
not set, it should default to false. However, if it is explicitly set to
false (or other value), a diffstat is still displayed, which is probably
not what most users would expect. Show diffstat only if it is set
to true.

Signed-off-by: Martin von Zweigbergk <martin.von.zweigbergk@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Martin von Zweigbergk authored and Junio C Hamano committed Nov 29, 2010
1 parent 593ce2b commit 9474a02
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion git-rebase.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ do_merge=
dotest="$GIT_DIR"/rebase-merge
prec=4
verbose=
diffstat=$(git config --bool rebase.stat)
diffstat=
test "$(git config --bool rebase.stat)" = true && diffstat=t
git_am_opt=
rebase_root=
force_rebase=
Expand Down

0 comments on commit 9474a02

Please sign in to comment.