diff options
author | 1998-11-25 00:30:25 +0000 | |
---|---|---|
committer | 1998-11-25 00:30:25 +0000 | |
commit | 2b3f4f7546efb6746c68c51595bb06f1af5f370d (patch) | |
tree | b9f75b9e1181527aa374e8df8fbb5ff28fdde114 /usr.bin/patch/patch.1 | |
parent | sync (diff) | |
download | wireguard-openbsd-2b3f4f7546efb6746c68c51595bb06f1af5f370d.tar.xz wireguard-openbsd-2b3f4f7546efb6746c68c51595bb06f1af5f370d.zip |
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 |