@matheusbsbs / matheus-bagliano / commits / 61f5cb7f0d
Fork 0

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>

Junio C Hamano committed Oct 24, 2006 at 21:48 UTC 61f5cb7f0d9ea6990f331bd7082630691c88abd2
2 files changed +4
Documentation/tutorial-2.txt
+1
@@ -23,6 +23,7 @@ $ echo 'hello world' > file.txt
23 $ git add .
24 $ git commit -a -m "initial commit"
25 Committing initial tree 92b8b694ffb1675e5975148e1121810081dbdffe
26 + create mode 100644 file.txt
27 $ echo 'hello world!' >file.txt
28 $ git commit -a -m "add emphasis"
29 ------------------------------------------------
git-commit.sh
+3
@@ -629,4 +629,7 @@ if test -x "$GIT_DIR"/hooks/post-commit && test "$ret" = 0
629 then
630 "$GIT_DIR"/hooks/post-commit
631 fi
632 +
633 +test "$ret" = 0 && git-diff-tree --summary --root --no-commit-id HEAD
634 +
635 exit "$ret"