aboutsummaryrefslogtreecommitdiff
path: root/git-commit.sh
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@dev.mellanox.co.il>2007-04-16 08:51:11 +0300
committerJunio C Hamano <junkio@cox.net>2007-04-16 01:06:00 -0700
commitc7263d4d3d75d177f0ad8a8a730e1e3b401488c7 (patch)
tree1a9c1b6c4e72f07516f4cc8c75e33a4dad28e223 /git-commit.sh
parent15320175355fc4770d9fb8b5a89ba8b36ef96246 (diff)
downloadgit-c7263d4d3d75d177f0ad8a8a730e1e3b401488c7.tar.gz
git-c7263d4d3d75d177f0ad8a8a730e1e3b401488c7.tar.xz
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>
Diffstat (limited to 'git-commit.sh')
-rwxr-xr-xgit-commit.sh3
1 files changed, 2 insertions, 1 deletions
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