revert: improve success message by adding abbreviated commit sha1
authorChristian Couder <chriscool@tuxfamily.org>
Tue, 13 Jul 2010 23:28:15 +0000 (01:28 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 16 Jul 2010 22:26:03 +0000 (15:26 -0700)
commitf29b5e06b3bdbe3c66a01db8ee67e3c87ae55705
tree6ba83b2c52bcf0cedfcf7b52c6f16930f9fdc5bf
parent3b2c5b6df4be14cac6b36cf0db0468efa1f42916
revert: improve success message by adding abbreviated commit sha1

Instead of saying "Finished one cherry-pick." or "Finished one revert.",
we now say "Finished cherry-pick of commit <abbreviated sha1>." or
"Finished revert of commit <abbreviated sha1>." which is more informative,
especially when cherry-picking or reverting many commits.

In case of failure the message is now "Automatic cherry-pick of commit
<abbreviated sha1> failed." instead of "Automatic cherry-pick failed."

Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Reviewed-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/revert.c
t/t3508-cherry-pick-many-commits.sh