[PATCH] Add git-apply-patch-script.
authorJunio C Hamano <junkio@cox.net>
Sun, 1 May 2005 16:33:12 +0000 (09:33 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Sun, 1 May 2005 16:33:12 +0000 (09:33 -0700)
commit5d2f8b2753183e6cf2238a6f2d847e54211ba11f
tree875735be17d24d11433354682a32e96a12f003d8
parentc983370e5e208cca4deda82184478ba445a156e6
[PATCH] Add git-apply-patch-script.

I said:

     - Stop attempting to be compatible with cg-patch, and drop
       (mode:XXXXXX) bits from the diff.

     - Do keep the /dev/null change for created and deleted case.

     - No "Index:" line, no "Mode change:" line, anywhere in the
       output.  Anything that wants the mode bits and sha1 hash can
       do things from GIT_EXTERNAL_DIFF mechanism.  Maybe document
       suggested usage better.

This adds an example script git-apply-patch-script, that can be
used as the GIT_EXTERNAL_DIFF to apply changes between two trees
directly on the current work tree, like this:

 GIT_EXTERNAL_DIFF=git-apply-patch-script git-diff-tree -p <tree> <tree>

Signed-off-by: Junio C Hamano <junkio@cox.net>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Makefile
git-apply-patch-script [new file with mode: 0644]