X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=git-am.sh;h=eab4aa891e522539bb145c9702200d3a788e650c;hb=0c8b106b020421c346532351af36028bfdda4c37;hp=38841d9beec8b718bf0ef4d2b98078783061b57a;hpb=4bfb6b62ffc9460798ebc78c3a30e4eff7c409d0;p=git.git
diff --git a/git-am.sh b/git-am.sh
index 38841d9b..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=