X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=t%2Fannotate-tests.sh;h=071e4d7d3ee9729b5caeb34ffd54ae88b7e1e0d8;hb=5ff6a8462f7461075fb39cd0d6d76e6c51ffbc9f;hp=304c7b7d8714f9f985cddcc91ba3006f668de127;hpb=19729fb7029c2bb287c72c7dcc5e5a293a069d09;p=platform%2Fupstream%2Fgit.git diff --git a/t/annotate-tests.sh b/t/annotate-tests.sh index 304c7b7..071e4d7 100644 --- a/t/annotate-tests.sh +++ b/t/annotate-tests.sh @@ -1,6 +1,17 @@ # This file isn't used as a test script directly, instead it is # sourced from t8001-annotate.sh and t8002-blame.sh. +if test_have_prereq MINGW +then + sanitize_L () { + echo "$1" | sed 'sX\(^-L\|,\)\^\?/X&\\;*Xg' + } +else + sanitize_L () { + echo "$1" + } +fi + check_count () { head= && file='file' && @@ -10,6 +21,7 @@ check_count () { case "$1" in -h) head="$2"; shift; shift ;; -f) file="$2"; shift; shift ;; + -L*) options="$options $(sanitize_L "$1")"; shift ;; -*) options="$options $1"; shift ;; *) break ;; esac