summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d25c26e)
raw | patch | inline | side by side (parent: d25c26e)
author | Junio C Hamano <junkio@cox.net> | |
Wed, 25 Oct 2006 04:48:55 +0000 (21:48 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Sat, 25 Nov 2006 08:20:01 +0000 (00:20 -0800) |
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>
Show --summary output for the HEAD commit after successful commit
as a final sanity check.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Documentation/tutorial-2.txt | patch | blob | history | |
git-commit.sh | patch | blob | history |
index 42b6e7d7d2bbb24d96f29635967945f516b25e15..6389de5ef7e221d84bb9c5443af09fb62960de4c 100644 (file)
$ git add .
$ git commit -a -m "initial commit"
Committing initial tree 92b8b694ffb1675e5975148e1121810081dbdffe
+ create mode 100644 file.txt
$ echo 'hello world!' >file.txt
$ git commit -a -m "add emphasis"
------------------------------------------------
diff --git a/git-commit.sh b/git-commit.sh
index 81c3a0cb6152b02ccdcaed607efcd500813ce607..7e9742d5e7e830e109f8c1c0f1fea5749502e430 100755 (executable)
--- a/git-commit.sh
+++ b/git-commit.sh
then
"$GIT_DIR"/hooks/post-commit
fi
+
+test "$ret" = 0 && git-diff-tree --summary --root --no-commit-id HEAD
+
exit "$ret"