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>

Nicolas Vigier committed Feb 1, 2014 at 02:17 UTC 51ba8ce372ad9fcab04a013252b819625c44770a
7 files changed +8
contrib/git-resurrect.sh
+1
@@ -10,6 +10,7 @@ is rather slow but allows you to resurrect other people's topic
10 branches."
11
12 OPTIONS_KEEPDASHDASH=
13 +OPTIONS_STUCKLONG=
14 OPTIONS_SPEC="\
15 git resurrect $USAGE
16 --
git-am.sh
+1
@@ -4,6 +4,7 @@
4
5 SUBDIRECTORY_OK=Yes
6 OPTIONS_KEEPDASHDASH=
7 +OPTIONS_STUCKLONG=
8 OPTIONS_SPEC="\
9 git am [options] [(<mbox>|<Maildir>)...]
10 git am [options] (--continue | --skip | --abort)
git-instaweb.sh
+1
@@ -5,6 +5,7 @@
5
6 PERL='@@PERL@@'
7 OPTIONS_KEEPDASHDASH=
8 +OPTIONS_STUCKLONG=
9 OPTIONS_SPEC="\
10 git instaweb [options] (--start | --stop | --restart)
11 --
git-quiltimport.sh
+1
@@ -1,5 +1,6 @@
1 #!/bin/sh
2 OPTIONS_KEEPDASHDASH=
3 +OPTIONS_STUCKLONG=
4 OPTIONS_SPEC="\
5 git quiltimport [options]
6 --
git-rebase.sh
+1
@@ -5,6 +5,7 @@
5
6 SUBDIRECTORY_OK=Yes
7 OPTIONS_KEEPDASHDASH=
8 +OPTIONS_STUCKLONG=
9 OPTIONS_SPEC="\
10 git rebase [-i] [options] [--exec <cmd>] [--onto <newbase>] [<upstream>] [<branch>]
11 git rebase [-i] [options] [--exec <cmd>] [--onto <newbase>] --root [<branch>]
git-request-pull.sh
+1
@@ -9,6 +9,7 @@ LONG_USAGE='Summarizes the changes between two commits to the standard output,
9 and includes the given URL in the generated summary.'
10 SUBDIRECTORY_OK='Yes'
11 OPTIONS_KEEPDASHDASH=
12 +OPTIONS_STUCKLONG=
13 OPTIONS_SPEC='git request-pull [options] start url [end]
14 --
15 p show patch text as well
git-sh-setup.sh
+2
@@ -72,6 +72,8 @@ if test -n "$OPTIONS_SPEC"; then
72 parseopt_extra=
73 [ -n "$OPTIONS_KEEPDASHDASH" ] &&
74 parseopt_extra="--keep-dashdash"
75 + [ -n "$OPTIONS_STUCKLONG" ] &&
76 + parseopt_extra="$parseopt_extra --stuck-long"
77
78 eval "$(
79 echo "$OPTIONS_SPEC" |