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>
This commit is contained in:
parent
1532017535
commit
c7263d4d3d
@ -649,8 +649,9 @@ then
|
|||||||
fi
|
fi
|
||||||
if test -z "$quiet"
|
if test -z "$quiet"
|
||||||
then
|
then
|
||||||
|
commit=`git-diff-tree --always --shortstat --pretty="format:%h: %s"\
|
||||||
|
--summary --root HEAD --`
|
||||||
echo "Created${initial_commit:+ initial} commit $commit"
|
echo "Created${initial_commit:+ initial} commit $commit"
|
||||||
git-diff-tree --shortstat --summary --root --no-commit-id HEAD --
|
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user