summaryrefslogtreecommitdiff
path: root/git-sh-setup.sh
diff options
context:
space:
mode:
authorNicolas Vigier <boklm@mars-attacks.org>2014-02-01 02:17:59 +0000
committerJunio C Hamano <gitster@pobox.com>2014-02-03 12:11:10 -0800
commit51ba8ce372ad9fcab04a013252b819625c44770a (patch)
tree1f1b4a810b6a5aba1e7541ea0ec2f06cbb84344d /git-sh-setup.sh
parent3253553e12d40da3bca818528f49a63c95f43aa3 (diff)
downloadgit-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.sh2
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" |