diff options
author | Junio C Hamano <junkio@cox.net> | 2006-10-24 21:48:55 -0700 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-11-25 00:20:01 -0800 |
commit | 61f5cb7f0d9ea6990f331bd7082630691c88abd2 (patch) | |
tree | 7e936e7df0c157628916872bb162b60a6d0ad381 /git-commit.sh | |
parent | d25c26e771fdf771f264dc85be348719886d354f (diff) | |
download | git-61f5cb7f0d9ea6990f331bd7082630691c88abd2.tar.gz git-61f5cb7f0d9ea6990f331bd7082630691c88abd2.tar.xz |
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 81c3a0cb6..7e9742d5e 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" |