ref: 6996fffa45a4e13e65394e8c46a6937c1ac3b8e7
parent: 00f5c30ebc7c56b0deb6e0e3bc139f356174feff
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,
--
⑨