summaryrefslogtreecommitdiff
path: root/contrib/examples/git-commit.sh
diff options
context:
space:
mode:
authorJonathan Nieder <jrnieder@gmail.com>2010-07-27 18:44:51 (GMT)
committerJunio C Hamano <gitster@pobox.com>2010-07-27 20:29:32 (GMT)
commit7f1592db5d4cba2b3de3a1ce46eb8c05bd33e0a1 (patch)
tree7bc758d1100c7de9d1b7f3f503a16927263fcc08 /contrib/examples/git-commit.sh
parentdcbeac48a7e61154c53ae800ea224607c1f7d52a (diff)
downloadgit-7f1592db5d4cba2b3de3a1ce46eb8c05bd33e0a1.zip
git-7f1592db5d4cba2b3de3a1ce46eb8c05bd33e0a1.tar.gz
git-7f1592db5d4cba2b3de3a1ce46eb8c05bd33e0a1.tar.bz2
examples/commit: use --abbrev for commit summary
After v1.7.1.1~17^2~3 (pretty: Respect --abbrev option, 2010-05-03), plumbing users do not abbreviate %h hashes by default any more. Noticed while investigating the bug fixed by v1.7.1.1~17^2 (commit::print_summary(): don't use format_commit_message(), 2010-06-12). Cc: Will Palmer <wmpalmer@gmail.com> Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/examples/git-commit.sh')
-rwxr-xr-xcontrib/examples/git-commit.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/examples/git-commit.sh b/contrib/examples/git-commit.sh
index 5c72f65..23ffb02 100755
--- a/contrib/examples/git-commit.sh
+++ b/contrib/examples/git-commit.sh
@@ -631,7 +631,7 @@ then
if test -z "$quiet"
then
commit=`git diff-tree --always --shortstat --pretty="format:%h: %s"\
- --summary --root HEAD --`
+ --abbrev --summary --root HEAD --`
echo "Created${initial_commit:+ initial} commit $commit"
fi
fi