From 9474a029d5817a9a5a0f96cf257fa95befd93e62 Mon Sep 17 00:00:00 2001 From: Martin von Zweigbergk Date: Tue, 9 Nov 2010 21:59:00 +0100 Subject: [PATCH] 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 Signed-off-by: Junio C Hamano --- git-rebase.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/git-rebase.sh b/git-rebase.sh index fb4fef7b1d..6ab95a33e9 100755 --- a/git-rebase.sh +++ b/git-rebase.sh @@ -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=