applypatch: use the new git-apply to apply patches
authorLinus Torvalds <torvalds@ppc970.osdl.org>
Sun, 5 Jun 2005 21:09:03 +0000 (14:09 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Sun, 5 Jun 2005 21:09:03 +0000 (14:09 -0700)
Let's test it with some real-world horror schenarios.

I'm crazy, I know.

applypatch

index 9c191ae..6db3588 100755 (executable)
@@ -58,10 +58,7 @@ echo
 echo Applying "'$SUBJECT'"
 echo
 
-git-check-files $(cat $FILES) || exit 1
-git-checkout-cache -q $(cat $FILES) || exit 1
-patch -E -u --no-backup-if-mismatch -f -p1 --fuzz=0 --input=$PATCHFILE || exit 1
-git-update-cache --add --remove $(cat $FILES) || exit 1
+git-apply $PATCHFILE || exit 1
 tree=$(git-write-tree) || exit 1
 echo Wrote tree $tree
 commit=$(git-commit-tree $tree -p $(cat .git/HEAD) < $final) || exit 1