X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=git-am.sh;h=4232e27411036e339f8102e45b7cb699c808a798;hb=efd0201684c6e9bf663811dc849590b8fe27b8b2;hp=c562159a187c233412d1ce2187d46280df020563;hpb=29504118f8528f658fd0bfc02d8d78d4c01dc2cc;p=git.git
diff --git a/git-am.sh b/git-am.sh
index c562159a..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=