This commit is contained in:
Paul Gauthier 2023-05-13 10:17:44 -07:00
parent c71d98ff82
commit 5a9446aa24

View file

@ -1,8 +1,11 @@
# Semantic search & replace code with aider and gpt-4
> The user asks aider to modify a series of function calls.
>
> Notice that it isn't replacing exact strings.
> Aider deals with various formatting and semantic differences in the calls that it is updating.
>
> Some edits were elided from this transcript for brevity.
---
@ -19,15 +22,6 @@ aider/coder.py
>>>>>>> UPDATED
```
```python
aider/coder.py
<<<<<<< ORIGINAL
self.console.print("[red]No suitable git repo, will not automatically commit edits.")
=======
self.io.tool_error("No suitable git repo, will not automatically commit edits.")
>>>>>>> UPDATED
```
```python
aider/coder.py
<<<<<<< ORIGINAL
@ -37,33 +31,6 @@ aider/coder.py
>>>>>>> UPDATED
```
```python
aider/coder.py
<<<<<<< ORIGINAL
self.console.print("[red]Files are in different git repos.")
=======
self.io.tool_error("Files are in different git repos.")
>>>>>>> UPDATED
```
```python
aider/coder.py
<<<<<<< ORIGINAL
self.console.print("[red]Skipped adding new files to the git repo.")
=======
self.io.tool_error("Skipped adding new files to the git repo.")
>>>>>>> UPDATED
```
```python
aider/coder.py
<<<<<<< ORIGINAL
self.console.print("[red]Warning: no changes found in tracked files.")
=======
self.io.tool_error("Warning: no changes found in tracked files.")
>>>>>>> UPDATED
```
```python
aider/coder.py
<<<<<<< ORIGINAL
@ -77,10 +44,6 @@ aider/coder.py
Please note that I couldn't find the `self.io.tool_error()` method in the provided code. You may need to create this method in the appropriate class or provide the correct method name to replace the `self.console.print()` calls.
*Applied edit to aider/coder.py*
*Applied edit to aider/coder.py*
*Applied edit to aider/coder.py*
*Applied edit to aider/coder.py*
*Applied edit to aider/coder.py*
*Applied edit to aider/coder.py*
*Applied edit to aider/coder.py*