Browse Source

Merge branch 'jc/commit-careful'

* jc/commit-careful:
  git-commit: show --summary after successful commit.
maint
Junio C Hamano 18 years ago
parent
commit
490e092def
  1. 1
      Documentation/tutorial-2.txt
  2. 3
      git-commit.sh

1
Documentation/tutorial-2.txt

@ -23,6 +23,7 @@ $ echo 'hello world' > file.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"
------------------------------------------------

3
git-commit.sh

@ -629,4 +629,7 @@ if test -x "$GIT_DIR"/hooks/post-commit && test "$ret" = 0 @@ -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"

Loading…
Cancel
Save