rebase: define options in OPTIONS_SPEC
authorMartin von Zweigbergk <redacted>
Tue, 1 Mar 2011 01:59:26 +0000 (20:59 -0500)
committerJunio C Hamano <redacted>
Sat, 5 Mar 2011 00:10:06 +0000 (16:10 -0800)
commit45e2acf3d33b2bc635f14af0c1d9ce698328954f
tree338b3f449d1c815e15551c54dad54f755c96c43f
parentfdb76c104af5196fe1faf6d84209daf752e87010
rebase: define options in OPTIONS_SPEC

Interactive rebase used to have its own command line processing. Since
it used the 'git rev-parse --parseopt' functionality exposed through
git-sh-setup, it had some flexibility, like matching prefixes of long
options, that non-interactive rebase didn't. When interactive rebase's
command line processing was factored out into git-rebase.sh in cf432ca
(rebase: factor out command line option processing, 2011-02-06), this
flexibility was lost. Give back that flexibility to interactive and
non-interactive by defining its options in OPTIONS_SPEC.

Also improve the usage message to contain the --continue, --skip and
--abort sub commands.

Reported-by: Johannes Sixt <redacted>
Signed-off-by: Martin von Zweigbergk <redacted>
Signed-off-by: Junio C Hamano <redacted>
git-rebase.sh
git clone https://git.99rst.org/PROJECT