diff options
author | Uwe Kleine-König <ukleinek@strlen.de> | 2010-09-24 16:47:17 +0200 |
---|---|---|
committer | Uwe Kleine-König <ukleinek@strlen.de> | 2010-09-24 16:55:23 +0200 |
commit | f36468e24d812cd9cb338fb4224cf7fdb750c232 (patch) | |
tree | 169eb9da95c72c27ce552ae7dcb240fab2c7957a | |
parent | 7f780e469f7deda4818c24cb2159edd432bed401 (diff) | |
download | ubergit-f36468e24d812cd9cb338fb4224cf7fdb750c232.tar.gz ubergit-f36468e24d812cd9cb338fb4224cf7fdb750c232.tar.xz |
use --keep-dashdash for option parsing
This only works since git v1.7.2-rc3~1^2~2, so document this requirement
in a README file.
Signed-off-by: Uwe Kleine-König <ukleinek@strlen.de>
-rw-r--r-- | README | 2 | ||||
-rw-r--r-- | uglib.sh | 5 |
2 files changed, 3 insertions, 4 deletions
@@ -0,0 +1,2 @@ += Dependencies = + - git (>= v1.7.2-rc3~1^2~2) @@ -207,8 +207,5 @@ sq() { ## option parsing ## {{{1 if test -n "$UG_OPTIONS_SPEC"; then - # depends on git >= v1.7.2-rc3~1^2~2, because before passing - # --keep-dashdash made git ignore --stop-at-non-option - #eval "$(printf "%s\n" "$UG_OPTIONS_SPEC" | git rev-parse --parseopt --keep-dashdash --stop-at-non-option -- "$@" || exit "$?")" - eval "$(printf "%s\n" "$UG_OPTIONS_SPEC" | git rev-parse --parseopt --stop-at-non-option -- "$@" || exit "$?")" + eval "$(printf "%s\n" "$UG_OPTIONS_SPEC" | git rev-parse --parseopt --keep-dashdash --stop-at-non-option -- "$@" || exit "$?")" fi |