From: Jonathan Nieder Date: Tue, 27 Jul 2010 18:44:51 +0000 (-0500) Subject: examples/commit: use --abbrev for commit summary X-Git-Tag: v1.7.2.3~20^2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=7f1592db5d4cba2b3de3a1ce46eb8c05bd33e0a1;p=git.git 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 Signed-off-by: Jonathan Nieder Signed-off-by: Junio C Hamano --- diff --git a/contrib/examples/git-commit.sh b/contrib/examples/git-commit.sh index 5c72f655c..23ffb028d 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