mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-29 16:54:59 +00:00
prompt
This commit is contained in:
parent
5628c2bf7c
commit
de17d8ea29
1 changed files with 7 additions and 6 deletions
13
prompts.py
13
prompts.py
|
@ -16,16 +16,17 @@ new lines to replace
|
||||||
the original chunk
|
the original chunk
|
||||||
>>>>>>> UPDATED
|
>>>>>>> UPDATED
|
||||||
|
|
||||||
Here is an example for how to just ADD lines to a file, without altering existing lines.
|
Here is an example for how to JUST add lines to a file, without altering any existing lines.
|
||||||
This anchors the location of the new code in the file by including 2-3 lines from the.
|
This anchors the location of the new code in the file by including a few lines from the original file.
|
||||||
|
|
||||||
foo.py
|
foo.py
|
||||||
<<<<<<< ORIGINAL
|
<<<<<<< ORIGINAL
|
||||||
def foo(a):
|
result = cam.cnt()
|
||||||
return a+a
|
return result
|
||||||
=======
|
=======
|
||||||
def foo(a):
|
result = cam.cnt()
|
||||||
return a+a
|
return result
|
||||||
|
|
||||||
def bar(b):
|
def bar(b):
|
||||||
return b*b*b
|
return b*b*b
|
||||||
>>>>>>> UPDATED
|
>>>>>>> UPDATED
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue