revert/cherry-pick: do not mention the original ref
commit757f58ed380a17225e8de9f461083a21d0a2c97c
authorJunio C Hamano <gitster@pobox.com>
Sun, 25 Nov 2007 23:15:48 +0000 (25 15:15 -0800)
committerJunio C Hamano <gitster@pobox.com>
Sun, 25 Nov 2007 23:56:55 +0000 (25 15:56 -0800)
treea1b27500a527126432534c220698198ad1a3127b
parent92b7ba16b7605f70cac845d4a8d0162392ac0223
revert/cherry-pick: do not mention the original ref

When you cherry-pick or revert a commit, naming it with an annotated
tag, we added a comment, attempting to repeat what we got from the end
user, to the message.

But this was inconsistent.  When we got "cherry-pick branch", we
recorded the object name (40-letter SHA-1) without saying anything like
"original was 'branch'".  There was no need to.  Also recent rewrite to
use parse-options made it impossible to parrot the original command line
without "unparsing".

This removes the code that implements the misguided "we dereferenced the
tag so record that in the commit message" behaviour.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-revert.c