git-sh-setup.sh: add variable to use the stuck-long mode
If the variable $OPTIONS_STUCKLONG is not empty, then rev-parse option parsing is done in --stuck-long mode. Signed-off-by: Nicolas Vigier <boklm@mars-attacks.org> Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
3253553e12
commit
51ba8ce372
@ -10,6 +10,7 @@ is rather slow but allows you to resurrect other people's topic
|
|||||||
branches."
|
branches."
|
||||||
|
|
||||||
OPTIONS_KEEPDASHDASH=
|
OPTIONS_KEEPDASHDASH=
|
||||||
|
OPTIONS_STUCKLONG=
|
||||||
OPTIONS_SPEC="\
|
OPTIONS_SPEC="\
|
||||||
git resurrect $USAGE
|
git resurrect $USAGE
|
||||||
--
|
--
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
|
|
||||||
SUBDIRECTORY_OK=Yes
|
SUBDIRECTORY_OK=Yes
|
||||||
OPTIONS_KEEPDASHDASH=
|
OPTIONS_KEEPDASHDASH=
|
||||||
|
OPTIONS_STUCKLONG=
|
||||||
OPTIONS_SPEC="\
|
OPTIONS_SPEC="\
|
||||||
git am [options] [(<mbox>|<Maildir>)...]
|
git am [options] [(<mbox>|<Maildir>)...]
|
||||||
git am [options] (--continue | --skip | --abort)
|
git am [options] (--continue | --skip | --abort)
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
|
|
||||||
PERL='@@PERL@@'
|
PERL='@@PERL@@'
|
||||||
OPTIONS_KEEPDASHDASH=
|
OPTIONS_KEEPDASHDASH=
|
||||||
|
OPTIONS_STUCKLONG=
|
||||||
OPTIONS_SPEC="\
|
OPTIONS_SPEC="\
|
||||||
git instaweb [options] (--start | --stop | --restart)
|
git instaweb [options] (--start | --stop | --restart)
|
||||||
--
|
--
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
OPTIONS_KEEPDASHDASH=
|
OPTIONS_KEEPDASHDASH=
|
||||||
|
OPTIONS_STUCKLONG=
|
||||||
OPTIONS_SPEC="\
|
OPTIONS_SPEC="\
|
||||||
git quiltimport [options]
|
git quiltimport [options]
|
||||||
--
|
--
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
|
|
||||||
SUBDIRECTORY_OK=Yes
|
SUBDIRECTORY_OK=Yes
|
||||||
OPTIONS_KEEPDASHDASH=
|
OPTIONS_KEEPDASHDASH=
|
||||||
|
OPTIONS_STUCKLONG=
|
||||||
OPTIONS_SPEC="\
|
OPTIONS_SPEC="\
|
||||||
git rebase [-i] [options] [--exec <cmd>] [--onto <newbase>] [<upstream>] [<branch>]
|
git rebase [-i] [options] [--exec <cmd>] [--onto <newbase>] [<upstream>] [<branch>]
|
||||||
git rebase [-i] [options] [--exec <cmd>] [--onto <newbase>] --root [<branch>]
|
git rebase [-i] [options] [--exec <cmd>] [--onto <newbase>] --root [<branch>]
|
||||||
|
@ -9,6 +9,7 @@ LONG_USAGE='Summarizes the changes between two commits to the standard output,
|
|||||||
and includes the given URL in the generated summary.'
|
and includes the given URL in the generated summary.'
|
||||||
SUBDIRECTORY_OK='Yes'
|
SUBDIRECTORY_OK='Yes'
|
||||||
OPTIONS_KEEPDASHDASH=
|
OPTIONS_KEEPDASHDASH=
|
||||||
|
OPTIONS_STUCKLONG=
|
||||||
OPTIONS_SPEC='git request-pull [options] start url [end]
|
OPTIONS_SPEC='git request-pull [options] start url [end]
|
||||||
--
|
--
|
||||||
p show patch text as well
|
p show patch text as well
|
||||||
|
@ -72,6 +72,8 @@ if test -n "$OPTIONS_SPEC"; then
|
|||||||
parseopt_extra=
|
parseopt_extra=
|
||||||
[ -n "$OPTIONS_KEEPDASHDASH" ] &&
|
[ -n "$OPTIONS_KEEPDASHDASH" ] &&
|
||||||
parseopt_extra="--keep-dashdash"
|
parseopt_extra="--keep-dashdash"
|
||||||
|
[ -n "$OPTIONS_STUCKLONG" ] &&
|
||||||
|
parseopt_extra="$parseopt_extra --stuck-long"
|
||||||
|
|
||||||
eval "$(
|
eval "$(
|
||||||
echo "$OPTIONS_SPEC" |
|
echo "$OPTIONS_SPEC" |
|
||||||
|
Loading…
Reference in New Issue
Block a user