mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-06 20:54:59 +00:00
diff with move hint
This commit is contained in:
parent
d9a301c9f8
commit
ef2a1f3875
3 changed files with 5 additions and 1 deletions
|
@ -96,6 +96,8 @@ When editing a function, method, loop, etc use a hunk to replace the *entire* co
|
|||
Delete the entire existing version with `-` lines and then add a new, updated version with `+` lines.
|
||||
This will help you generate correct code and correct diffs.
|
||||
|
||||
To move code within a file, use 2 hunks: 1 to delete it from its current location, 1 to insert it in the new location.
|
||||
|
||||
To make a new file, show a diff from `--- /dev/null` to `+++ path/to/new/file.ext`.
|
||||
|
||||
You are diligent and tireless!
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue