ref: 4128eb8743eeefbccfa1b57f3a770192b1b11c5e
parent: e7f49afcfb2765c3804fcf74eaede43363c7fee6
author: Ori Bernstein <ori@eigenstate.org>
date: Tue Jul 1 19:29:17 EDT 2025
patch(1): document '-r' flag
--- a/sys/man/1/patch
+++ b/sys/man/1/patch
@@ -10,6 +10,10 @@
.I rdir
]
[
+.B -r
+.I rejfile
+]
+[
.B -p
.I nstrip
]
@@ -46,6 +50,10 @@
Remove the prefix containing
.I nstrip
leading slashes from each file path in the diff file.
+.TP
+.BI -r \ rejfile
+Apply as much of the patch as possible,
+saving any hunks that could not be applied to a rejection file.
.SH INPUT FORMAT
A patch begins with a patch header, and is followed by a sequence of one or more hunks.
All lines before a patch header or after the last hunk of a patch are comments,
--
⑨