X-Git-Url: https://git.octo.it/?a=blobdiff_plain;ds=sidebyside;f=git-am.sh;h=507ae4dcb9964e63143661392d7a10d7da4ef33e;hb=e686eb9870d6b382f0760e3e859e93c8c2dfb31b;hp=115ebaddf595f49059208ac890308b6ebe01aa42;hpb=72e5890b68e7199d92620d3bba91fa36dd259404;p=git.git
diff --git a/git-am.sh b/git-am.sh
index 115ebadd..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=