X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;ds=sidebyside;f=git-am.sh;h=eab4aa891e522539bb145c9702200d3a788e650c;hb=ea92f41ff92b2fef54c8da4abb03c8101160a034;hp=51ea168e03b0d1e4a906f5f17ead431ca3884502;hpb=4ae22d96fe9248dac4f26b1fc91154ba5e879799;p=git.git
diff --git a/git-am.sh b/git-am.sh
index 51ea168e..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=