X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=git-am.sh;h=df09b42840b7675e135605f9108894ce93e6d477;hb=5c28a8b054cb69a37638b0261fc370422c8fab58;hp=5f249485df230bed0d2a620104369260b0ac8b66;hpb=75a2f301676aefb85c4f67da613cad2405e77927;p=git.git diff --git a/git-am.sh b/git-am.sh index 5f249485d..df09b4284 100755 --- a/git-am.sh +++ b/git-am.sh @@ -5,7 +5,7 @@ SUBDIRECTORY_OK=Yes OPTIONS_KEEPDASHDASH= OPTIONS_SPEC="\ -git am [options] [|...] +git am [options] [(|)...] git am [options] (--resolved | --skip | --abort) -- i,interactive run interactively @@ -444,12 +444,12 @@ else set x first= } - case "$arg" in - /*) - set "$@" "$arg" ;; - *) - set "$@" "$prefix$arg" ;; - esac + if is_absolute_path "$arg" + then + set "$@" "$arg" + else + set "$@" "$prefix$arg" + fi done shift fi