X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=git-am.sh;h=eab4aa891e522539bb145c9702200d3a788e650c;hb=84a9b58c421f9b2d1cc6c195ed441fac48e60392;hp=85d682669c21785c5b1f4b76fa95ac6104adbe07;hpb=a1451104ac2aa97f2e74818787ff54e29b2a77e5;p=git.git diff --git a/git-am.sh b/git-am.sh index 85d68266..eab4aa89 100755 --- a/git-am.sh +++ b/git-am.sh @@ -1,20 +1,13 @@ #!/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=