summaryrefslogtreecommitdiff
path: root/git-commit.sh
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-10-25 04:48:55 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-11-25 08:20:01 (GMT)
commit61f5cb7f0d9ea6990f331bd7082630691c88abd2 (patch)
tree7e936e7df0c157628916872bb162b60a6d0ad381 /git-commit.sh
parentd25c26e771fdf771f264dc85be348719886d354f (diff)
downloadgit-61f5cb7f0d9ea6990f331bd7082630691c88abd2.zip
git-61f5cb7f0d9ea6990f331bd7082630691c88abd2.tar.gz
git-61f5cb7f0d9ea6990f331bd7082630691c88abd2.tar.bz2
git-commit: show --summary after successful commit.
Sometimes people accidentally commit files in wrong mode bits. Show --summary output for the HEAD commit after successful commit as a final sanity check. Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'git-commit.sh')
-rwxr-xr-xgit-commit.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/git-commit.sh b/git-commit.sh
index 81c3a0c..7e9742d 100755
--- a/git-commit.sh
+++ b/git-commit.sh
@@ -629,4 +629,7 @@ if test -x "$GIT_DIR"/hooks/post-commit && test "$ret" = 0
then
"$GIT_DIR"/hooks/post-commit
fi
+
+test "$ret" = 0 && git-diff-tree --summary --root --no-commit-id HEAD
+
exit "$ret"