X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=git-am.sh;h=eab4aa891e522539bb145c9702200d3a788e650c;hb=a5370b16c34993c1d0f65171d5704244901e005b;hp=115ebaddf595f49059208ac890308b6ebe01aa42;hpb=1301c6eb412e7c5511b952a12e42c70ad56f028b;p=git.git diff --git a/git-am.sh b/git-am.sh index 115ebadd..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=