Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-12-13 22:03:46 +0300
committerJunio C Hamano <junkio@cox.net>2006-12-13 22:03:46 +0300
commit490e092defd01ff645457cde4e96bc0d0d534ccd (patch)
tree416289579cae9553b51dc852dcbb00eac1578c2e
parentf88bd392e6aa57a985604b13f6ade47f241b3c77 (diff)
parent61f5cb7f0d9ea6990f331bd7082630691c88abd2 (diff)
Merge branch 'jc/commit-careful'
* jc/commit-careful: git-commit: show --summary after successful commit.
-rw-r--r--Documentation/tutorial-2.txt1
-rwxr-xr-xgit-commit.sh3
2 files changed, 4 insertions, 0 deletions
diff --git a/Documentation/tutorial-2.txt b/Documentation/tutorial-2.txt
index 42b6e7d7d2..6389de5ef7 100644
--- a/Documentation/tutorial-2.txt
+++ b/Documentation/tutorial-2.txt
@@ -23,6 +23,7 @@ $ echo 'hello world' > file.txt
$ 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 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"