X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=git-am.sh;h=4232e27411036e339f8102e45b7cb699c808a798;hb=9236cdd488c26ec09e23adec34f64fd6fca3dc7c;hp=51ea168e03b0d1e4a906f5f17ead431ca3884502;hpb=8ac3a61f59173d4a9a328518be83a25df610a5ef;p=git.git diff --git a/git-am.sh b/git-am.sh index 51ea168e..4232e274 100755 --- a/git-am.sh +++ b/git-am.sh @@ -1,26 +1,43 @@ #!/bin/sh # -# -. git-sh-setup || die "Not a git archive" +# Copyright (c) 2005, 2006 Junio C Hamano -files=$(git-diff-index --cached --name-only HEAD) || exit -if [ "$files" ]; then - echo "Dirty index: cannot apply patches (dirty: $files)" >&2 - exit 1 -fi +USAGE='[--signoff] [--dotest=] [--utf8] [--binary] [--3way] + [--interactive] [--whitespace=