diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2009-06-14 01:58:43 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-06-13 17:08:37 -0700 |
commit | 6e0800ef2575751f2e20d11e2cfe305304e5e9b8 (patch) | |
tree | c222ae6d5b9d1a3dfa5caaca6dece9bb015f03e9 /t/t1502-rev-parse-parseopt.sh | |
parent | more tests for git rev-parse --parse-opt (diff) | |
download | tgif-6e0800ef2575751f2e20d11e2cfe305304e5e9b8.tar.xz |
parse-opt: make PARSE_OPT_STOP_AT_NON_OPTION available to git rev-parse
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t1502-rev-parse-parseopt.sh')
-rwxr-xr-x | t/t1502-rev-parse-parseopt.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/t/t1502-rev-parse-parseopt.sh b/t/t1502-rev-parse-parseopt.sh index be0959e8a3..e504058062 100755 --- a/t/t1502-rev-parse-parseopt.sh +++ b/t/t1502-rev-parse-parseopt.sh @@ -65,6 +65,11 @@ test_expect_success 'test --parseopt with --' ' test_cmp expect output ' +test_expect_success 'test --parseopt --stop-at-non-option' ' + git rev-parse --parseopt --stop-at-non-option -- --foo arg --bar=ham < optionspec > output && + test_cmp expect output +' + cat > expect <<EOF set -- --foo -- '--' 'arg' '--bar=ham' EOF |