author | Junio C Hamano <junkio@cox.net> | |
Wed, 23 May 2007 05:52:59 +0000 (22:52 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Wed, 23 May 2007 07:17:51 +0000 (00:17 -0700) | ||
commit | 32309f54ed4b71510f67f2376d755cd2733f29b1 | |
tree | d6720e562ca9017672f1b0dff29f01d16de447dc | tree | snapshot |
parent | 2555699aa2863861e32d222ede2c3df2dbf92088 | commit | diff |
Fix command line parameter parser of revert/cherry-pick
The parser was inconsistently done, in that it did not look at
the last command line parameter to see if it could be an unknown
option, although it was designed to notice unknown options if
they were given in positions the command expects to find them
(i.e. everything except the last parameter, which ought to be
<commit-ish>). This prevented a very natural invocation
$ git cherry-pick --usage
from issuing the usage help.
Signed-off-by: Junio C Hamano <junkio@cox.net>
The parser was inconsistently done, in that it did not look at
the last command line parameter to see if it could be an unknown
option, although it was designed to notice unknown options if
they were given in positions the command expects to find them
(i.e. everything except the last parameter, which ought to be
<commit-ish>). This prevented a very natural invocation
$ git cherry-pick --usage
from issuing the usage help.
Signed-off-by: Junio C Hamano <junkio@cox.net>
builtin-revert.c | diff | blob | history |