summaryrefslogtreecommitdiff
path: root/usr.bin/patch/patch.1
diff options
context:
space:
mode:
authorskd <skd@NetBSD.org>2005-03-25 23:00:55 +0000
committerskd <skd@NetBSD.org>2005-03-25 23:00:55 +0000
commit4f9669ed8d58191582fd1bc5a67fe39462315404 (patch)
tree640bca235a1184518f28fa1705475b3365a6080a /usr.bin/patch/patch.1
parentb279845eed08a04fbb1a291ddd7014bb21a7619b (diff)
add --dry-run like gnu patch.
Diffstat (limited to 'usr.bin/patch/patch.1')
-rw-r--r--usr.bin/patch/patch.17
1 files changed, 6 insertions, 1 deletions
diff --git a/usr.bin/patch/patch.1 b/usr.bin/patch/patch.1
index 4819958f47c..f8714ff25aa 100644
--- a/usr.bin/patch/patch.1
+++ b/usr.bin/patch/patch.1
@@ -1,4 +1,4 @@
-.\" $NetBSD: patch.1,v 1.9 2003/01/06 12:48:06 wiz Exp $ -*- nroff -*-
+.\" $NetBSD: patch.1,v 1.10 2005/03/25 23:00:55 skd Exp $ -*- nroff -*-
.rn '' }`
.de Sh
.br
@@ -226,6 +226,11 @@ forces
.I patch
to interpret the patch file as a context diff.
.TP 5
+.B \-C or \-\-dry\-run
+causes
+.I patch
+to report what would be done, but not to actully modify any files or create any rejects.
+.TP 5
.B \-d or \-\-directory
causes
.I patch