@matheusbsbs / matheus-bagliano / commits / 9474a029d5
Fork 0

rebase: only show stat if configured to true

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>

Martin von Zweigbergk committed Nov 9, 2010 at 21:59 UTC 9474a029d5817a9a5a0f96cf257fa95befd93e62
1 file changed +2 -1
git-rebase.sh
+2 -1
@@ -48,7 +48,8 @@ do_merge=
48 dotest="$GIT_DIR"/rebase-merge
49 prec=4
50 verbose=
51 -diffstat=$(git config --bool rebase.stat)
51 +diffstat=
52 +test "$(git config --bool rebase.stat)" = true && diffstat=t
53 git_am_opt=
54 rebase_root=
55 force_rebase=