man cg-patch (Commandes) - apply a diff generated by cg-diff

NAME

cg-patch - apply a diff generated by cg-diff

SYNOPSIS

cg-patch [-R] < patch on stdin

DESCRIPTION

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).

OPTIONS

-R
Applies the patch in reverse (therefore effectively unapplies it)

Takes the diff on stdin.

-h, --help
Print usage help.

COPYRIGHT

Copyright &#169; Petr Baudis, 2005

SEE ALSO

cg-patch command is part of cogito(7), a toolkit for managing git(7) trees.