diff options
author | Marc Espie <espie@cvs.openbsd.org> | 1998-11-25 00:30:27 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 1998-11-25 00:30:27 +0000 |
commit | bb47551a102c5fe2b9a2f03e559fdaf09ffc655e (patch) | |
tree | 3b03e51b6d8b549ec45bca61e56368d4ac1a4e1d /usr.bin/patch/patch.1 | |
parent | aa25fbfecc7fb0b07bcae5390099b70d837006c1 (diff) |
add -C
Diffstat (limited to 'usr.bin/patch/patch.1')
-rw-r--r-- | usr.bin/patch/patch.1 | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/usr.bin/patch/patch.1 b/usr.bin/patch/patch.1 index 8fb35d5bf4b..18beb6e46f7 100644 --- a/usr.bin/patch/patch.1 +++ b/usr.bin/patch/patch.1 @@ -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 @@ forces .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 @@ -505,6 +508,14 @@ generated from. 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), .I patch |