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>
This commit is contained in:
@ -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"
|
||||
|
Reference in New Issue
Block a user