commit - 07f74738a18008a5dc7571048fef967a248670eb
commit + 4929098b50991a6640f81e8bfe7c0bf7b103b9a4
blob - f0d5878b2556cfd6f8d306281a46eae5ada09f16
blob + 1c15f9eb9f3148f3b830e1d2552dcf83ae897b1b
--- got/got.1
+++ got/got.1
.Pp
The patch must be in the unified diff format as produced by
.Cm got diff ,
-or
+or by
.Xr diff 1
when invoked with the
.Fl u
Files added or removed by a patch will be scheduled for addition or removal in
the work tree.
.Pp
-While applying the
-.Ar patchfile ,
-show the status of each affected file, using the following status codes:
+Show the status of each affected file, using the following status codes:
.Bl -column XYZ description
.It M Ta file was modified
.It D Ta file was deleted
.El
.Pp
If a change does not match at its exact line number, attempt to
-apply it somewhere else in the file if a good spot can be found,
-before giving up.
+apply it somewhere else in the file if a good spot can be found.
+Otherwise, the patch will fail to apply.
.Pp
.Nm
.Cm patch
will refuse to apply a patch if certain preconditions are not met.
-Files to be deleted must be present in the work tree and not have been
-scheduled for deletion already.
-Files to be added must be unknown and not present in the work tree.
-Files to be modified must be already be present in the work tree and
-not contain conflicts or be obstructed.
+Files to be deleted must already be under version control, and must
+not have been scheduled for deletion already.
+Files to be added must not yet be under version control and must not
+already be present on disk.
+Files to be modified must already be under version control and may not
+contain conflict markers.
.Pp
If an error occurs, the
.Cm patch