Skip to content

Commit c7263d4

Browse files
Michael S. TsirkinJunio C Hamano
authored andcommitted
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>
1 parent 1532017 commit c7263d4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

git-commit.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -649,8 +649,9 @@ then
649649
fi
650650
if test -z "$quiet"
651651
then
652+
commit=`git-diff-tree --always --shortstat --pretty="format:%h: %s"\
653+
--summary --root HEAD --`
652654
echo "Created${initial_commit:+ initial} commit $commit"
653-
git-diff-tree --shortstat --summary --root --no-commit-id HEAD --
654655
fi
655656
fi
656657

0 commit comments

Comments
 (0)