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 <mst@dev.mellanox.co.il> Signed-off-by: Junio C Hamano <junkio@cox.net>
Michael S. Tsirkin committed
Apr 16, 2007 at 08:51 UTC
c7263d4d3d75d177f0ad8a8a730e1e3b401488c7
1 file changed
+2
-1
git-commit.sh
+2
-1
@@ -649,8 +649,9 @@ then
649
fi
650
if test -z "$quiet"
651
then
652
+ commit=`git-diff-tree --always --shortstat --pretty="format:%h: %s"\
653
+ --summary --root HEAD --`
654
echo "Created${initial_commit:+ initial} commit $commit"
653
- git-diff-tree --shortstat --summary --root --no-commit-id HEAD --
655
fi
656
fi
657