X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=git-am.sh;h=507ae4dcb9964e63143661392d7a10d7da4ef33e;hb=31fff305bcc6db3b8082eac7fc9e441b27964fea;hp=9e41e7031339670f8077a9fd0ca98c703cc35ea6;hpb=d1c5f2a42d7b5c0e3d3862212dea1f09809c4963;p=git.git diff --git a/git-am.sh b/git-am.sh index 9e41e703..507ae4dc 100755 --- a/git-am.sh +++ b/git-am.sh @@ -1,26 +1,39 @@ #!/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=