cg-patch - apply a diff generated by cg-diff
cg-patch [-R] < patch on stdin
This is basically just a smart patch wrapper. It handles stuff like mode changes, removal of files vs. zero-size files etc.
For now the script can process the old-style cg-diff patches (those having the "(mode: 0123)" stuff on the +++ and --- lines) as well as the new-style git-diff patches (those with the "diff --git" lines).
Applies the patch in reverse (therefore effectively unapplies it)
Takes the diff on stdin.
Print usage help.
Copyright © Petr Baudis, 2005