Encourage use of start_line in multi-file diff to match legacy diff (#4777)

This commit is contained in:
Matt Rubens 2025-06-17 10:40:37 -04:00 • committed by GitHub
parent e95c1e88d7
commit 48c9bd5fae
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View file

@ -107,12 +107,12 @@ Parameters:
- path: (required) The path of the file to modify (relative to the current workspace directory ${args.cwd})
- diff: (required) One or more diff elements containing:
- content: (required) The search/replace block defining the changes.
- start_line: (optional) The line number of original content where the search block starts.
- start_line: (required) The line number of original content where the search block starts.
Diff format:
\`\`\`
<<<<<<< SEARCH
:start_line: (optional) The line number of original content where the search block starts.
:start_line: (required) The line number of original content where the search block starts.
-------
[exact content to find including whitespace]
=======
@ -294,7 +294,7 @@ Each file requires its own path, start_line, and diff elements.
"\n" +
"CORRECT FORMAT:\n\n" +
"<<<<<<< SEARCH\n" +
":start_line: (optional) The line number of original content where the search block starts.\n" +
":start_line: (required) The line number of original content where the search block starts.\n" +
"-------\n" +
"[exact content to find including whitespace]\n" +
"=======\n" +

View file

@ -153,7 +153,7 @@ Expected structure:
<path>relative/path/to/file.ext</path>
<diff>
<content>diff content here</content>
<start_line>optional line number</start_line>
<start_line>line number</start_line>
</diff>
</file>
</args>