From: Michael S. Tsirkin Date: Mon, 16 Apr 2007 05:51:11 +0000 (+0300) Subject: Display the subject of the commit just made. X-Git-Tag: v1.5.2-rc0~50 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c7263d4d3d75d177f0ad8a8a730e1e3b401488c7;p=git.git Display the subject of the commit just made. Useful e.g. to figure out what I did from screen history, or to make sure subject line is short enough and makes sense on its own. Signed-off-by: Michael S. Tsirkin Signed-off-by: Junio C Hamano --- diff --git a/git-commit.sh b/git-commit.sh index 9e0959aec..f28fc2422 100755 --- a/git-commit.sh +++ b/git-commit.sh @@ -649,8 +649,9 @@ then fi if test -z "$quiet" then + commit=`git-diff-tree --always --shortstat --pretty="format:%h: %s"\ + --summary --root HEAD --` echo "Created${initial_commit:+ initial} commit $commit" - git-diff-tree --shortstat --summary --root --no-commit-id HEAD -- fi fi