From c7263d4d3d75d177f0ad8a8a730e1e3b401488c7 Mon Sep 17 00:00:00 2001 From: "Michael S. Tsirkin" Date: Mon, 16 Apr 2007 08:51:11 +0300 Subject: [PATCH] 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 --- git-commit.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.26.2