Skip to content

Commit 51ba8ce

Browse files
boklmgitster
authored andcommitted
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 <[email protected]> Signed-off-by: brian m. carlson <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 3253553 commit 51ba8ce

File tree

7 files changed

+8
-0
lines changed

7 files changed

+8
-0
lines changed

contrib/git-resurrect.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ is rather slow but allows you to resurrect other people's topic
1010
branches."
1111

1212
OPTIONS_KEEPDASHDASH=
13+
OPTIONS_STUCKLONG=
1314
OPTIONS_SPEC="\
1415
git resurrect $USAGE
1516
--

git-am.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
SUBDIRECTORY_OK=Yes
66
OPTIONS_KEEPDASHDASH=
7+
OPTIONS_STUCKLONG=
78
OPTIONS_SPEC="\
89
git am [options] [(<mbox>|<Maildir>)...]
910
git am [options] (--continue | --skip | --abort)

git-instaweb.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
PERL='@@PERL@@'
77
OPTIONS_KEEPDASHDASH=
8+
OPTIONS_STUCKLONG=
89
OPTIONS_SPEC="\
910
git instaweb [options] (--start | --stop | --restart)
1011
--

git-quiltimport.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/bin/sh
22
OPTIONS_KEEPDASHDASH=
3+
OPTIONS_STUCKLONG=
34
OPTIONS_SPEC="\
45
git quiltimport [options]
56
--

git-rebase.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
SUBDIRECTORY_OK=Yes
77
OPTIONS_KEEPDASHDASH=
8+
OPTIONS_STUCKLONG=
89
OPTIONS_SPEC="\
910
git rebase [-i] [options] [--exec <cmd>] [--onto <newbase>] [<upstream>] [<branch>]
1011
git rebase [-i] [options] [--exec <cmd>] [--onto <newbase>] --root [<branch>]

git-request-pull.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ LONG_USAGE='Summarizes the changes between two commits to the standard output,
99
and includes the given URL in the generated summary.'
1010
SUBDIRECTORY_OK='Yes'
1111
OPTIONS_KEEPDASHDASH=
12+
OPTIONS_STUCKLONG=
1213
OPTIONS_SPEC='git request-pull [options] start url [end]
1314
--
1415
p show patch text as well

git-sh-setup.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ if test -n "$OPTIONS_SPEC"; then
7272
parseopt_extra=
7373
[ -n "$OPTIONS_KEEPDASHDASH" ] &&
7474
parseopt_extra="--keep-dashdash"
75+
[ -n "$OPTIONS_STUCKLONG" ] &&
76+
parseopt_extra="$parseopt_extra --stuck-long"
7577
7678
eval "$(
7779
echo "$OPTIONS_SPEC" |

0 commit comments

Comments
 (0)