Display the subject of the commit just made.
authorMichael S. Tsirkin <mst@dev.mellanox.co.il>
Mon, 16 Apr 2007 05:51:11 +0000 (08:51 +0300)
committerJunio C Hamano <junkio@cox.net>
Mon, 16 Apr 2007 08:06:00 +0000 (01:06 -0700)
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 <mst@dev.mellanox.co.il>
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-commit.sh

index 9e0959aec06c4d4d7b4f14660c26bc9dd941f111..f28fc242241d3f0f5c88b287da0c59417667a013 100755 (executable)
@@ -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