diff options
author | Nicolas Vigier <boklm@mars-attacks.org> | 2014-02-01 02:17:59 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-02-03 12:11:10 -0800 |
commit | 51ba8ce372ad9fcab04a013252b819625c44770a (patch) | |
tree | 1f1b4a810b6a5aba1e7541ea0ec2f06cbb84344d /git-sh-setup.sh | |
parent | 3253553e12d40da3bca818528f49a63c95f43aa3 (diff) | |
download | git-51ba8ce372ad9fcab04a013252b819625c44770a.tar.gz |
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>
Diffstat (limited to 'git-sh-setup.sh')
-rw-r--r-- | git-sh-setup.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/git-sh-setup.sh b/git-sh-setup.sh index fffa3c72d7..5f28b32dc7 100644 --- a/git-sh-setup.sh +++ b/git-sh-setup.sh @@ -72,6 +72,8 @@ if test -n "$OPTIONS_SPEC"; then parseopt_extra= [ -n "$OPTIONS_KEEPDASHDASH" ] && parseopt_extra="--keep-dashdash" + [ -n "$OPTIONS_STUCKLONG" ] && + parseopt_extra="$parseopt_extra --stuck-long" eval "$( echo "$OPTIONS_SPEC" | |