aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/patch/patch.1
diff options
context:
space:
mode:
authorKyle Evans <kevans@FreeBSD.org>2019-12-03 18:55:09 +0000
committerKyle Evans <kevans@FreeBSD.org>2019-12-03 18:55:09 +0000
commitbe3a0c5043ce6f6dd57ad55276e9b67447be6867 (patch)
tree26502a128ed6e59a03d612cf66588fe6530c078c /usr.bin/patch/patch.1
parent71f0711edec2d95229f1a0f63b60040c2195bfb2 (diff)
Notes
Diffstat (limited to 'usr.bin/patch/patch.1')
-rw-r--r--usr.bin/patch/patch.18
1 files changed, 5 insertions, 3 deletions
diff --git a/usr.bin/patch/patch.1 b/usr.bin/patch/patch.1
index e8478fc0438e..3ad5287dee36 100644
--- a/usr.bin/patch/patch.1
+++ b/usr.bin/patch/patch.1
@@ -21,7 +21,7 @@
.\"
.\" $OpenBSD: patch.1,v 1.27 2014/04/15 06:26:54 jmc Exp $
.\" $FreeBSD$
-.Dd August 15, 2015
+.Dd November 3, 2019
.Dt PATCH 1
.Os
.Sh NAME
@@ -559,8 +559,10 @@ option as needed.
.Pp
Third, you can create a file by sending out a diff that compares a
null file to the file you want to create.
-This will only work if the file you want to create does not exist already in
-the target directory.
+If the file you want to create already exists in the target directory when the
+diff is applied, then
+.Nm
+will identify the patch as potentially reversed and offer to reverse the patch.
.Pp
Fourth, take care not to send out reversed patches, since it makes people wonder
whether they already applied the patch.