rebase: define options in OPTIONS_SPEC
commit45e2acf3d33b2bc635f14af0c1d9ce698328954f
authorMartin von Zweigbergk <martin.von.zweigbergk@gmail.com>
Tue, 1 Mar 2011 01:59:26 +0000 (28 20:59 -0500)
committerJunio C Hamano <gitster@pobox.com>
Sat, 5 Mar 2011 00:10:06 +0000 (4 16:10 -0800)
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 <j6t@kdbg.org>
Signed-off-by: Martin von Zweigbergk <martin.von.zweigbergk@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-rebase.sh