From 51ba8ce372ad9fcab04a013252b819625c44770a Mon Sep 17 00:00:00 2001 From: Nicolas Vigier Date: Sat, 1 Feb 2014 02:17:59 +0000 Subject: 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 Signed-off-by: brian m. carlson Signed-off-by: Junio C Hamano --- git-sh-setup.sh | 2 ++ 1 file changed, 2 insertions(+) (limited to 'git-sh-setup.sh') 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" | -- cgit v1.2.3