=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/patch/patch.1,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- src/usr.bin/patch/patch.1 1996/06/10 11:21:30 1.2 +++ src/usr.bin/patch/patch.1 1998/11/25 00:30:25 1.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: patch.1,v 1.2 1996/06/10 11:21:30 niklas Exp $ -*- nroff -*- +.\" $OpenBSD: patch.1,v 1.3 1998/11/25 00:30:25 espie Exp $ -*- nroff -*- .rn '' }` .de Sh .br @@ -218,6 +218,9 @@ .I patch to interpret the patch file as a context diff. .TP 5 +.B \-C or \-\-check +checks that the patch would apply cleanly, but does not modify anything. +.TP 5 .B \-d or \-\-directory causes .I patch @@ -504,6 +507,14 @@ .SH BUGS Could be smarter about partial matches, excessively \&deviant offsets and swapped code, but that would take an extra pass. +.PP +Check patch mode ( +.BR -C ) +will fail if you try to check several patches in succession that build on +each other. The whole code of +.I patch +would have to be restructured to keep temporary files around so that it can +handle this situation. .PP If code has been duplicated (for instance with #ifdef OLDCODE ... #else ... #endif),