replace: parse revision argument for -d
authorMichael J Gruber <git@drmicha.warpmail.net>
Tue, 13 Nov 2012 10:34:11 +0000 (11:34 +0100)
committerJeff King <peff@peff.net>
Tue, 13 Nov 2012 13:34:14 +0000 (08:34 -0500)
commit9dfc36841b3f1a2669f0513676cc4d72ef1220a1
tree45007aa220439f0e3c5cb9e7d62109ac12683676
parentb0b00a3ee43b4813eb85728a482500f6422499fd
replace: parse revision argument for -d

'git replace' parses the revision arguments when it creates replacements
(so that a sha1 can be abbreviated, e.g.) but not when deleting
replacements.

Make it parse the argument to 'replace -d' in the same way.

Signed-off-by: Michael J Gruber <git@drmicha.warpmail.net>
Signed-off-by: Jeff King <peff@peff.net>
builtin/replace.c
t/t6050-replace.sh