diff --git a/packages/core/src/tool/patch.txt b/packages/core/src/tool/patch.txt index 72c0489c0d..df2d80f093 100644 --- a/packages/core/src/tool/patch.txt +++ b/packages/core/src/tool/patch.txt @@ -12,6 +12,8 @@ Each operation starts with one of three headers: *** Delete File: - remove an existing file. Nothing follows. *** Update File: - patch an existing file in place (optionally with a rename). +In update hunks, lines prefixed with a space are unchanged context and must match the current file exactly. If a line changes, emit the old line with `-` and the new line with `+`; never place the intended new version in an unchanged context line. + Example patch: ```