diff options
author | Junio C Hamano <junkio@cox.net> | 2006-10-25 06:48:55 +0200 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-11-25 09:20:01 +0100 |
commit | 61f5cb7f0d9ea6990f331bd7082630691c88abd2 (patch) | |
tree | 7e936e7df0c157628916872bb162b60a6d0ad381 /git-commit.sh | |
parent | git-svn: exit with status 1 for test failures (diff) | |
download | git-61f5cb7f0d9ea6990f331bd7082630691c88abd2.tar.xz git-61f5cb7f0d9ea6990f331bd7082630691c88abd2.zip |
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-x | git-commit.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/git-commit.sh b/git-commit.sh index 81c3a0cb61..7e9742d5e7 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" |