mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-25 23:05:00 +00:00
![]() # Aider chat conversation: USER: you need to parse these lines `1 file changed, 20 insertions(+), 1 deletion(-)` ASSISTANT: To parse the lines `1 file changed, 20 insertions(+), 1 deletion(-)`, we need to update the `show_commit_stats` function to correctly extract the number of insertions and deletions from these lines. Here are the *SEARCH/REPLACE* blocks: scripts/blame.py ```python <<<<<<< SEARCH if "insertion" in line: added_lines += int(line.split()[0]) if "deletion" in line: deleted_lines += int(line.split()[0]) ======= if "insertion" in line or "insertion(+)" in line: added_lines += int(line.split()[line.split().index("insertion(+)") - 1]) if "deletion" in line or "deletion(-)" in line: deleted_lines += int(line.split()[line.split().index("deletion(-)") - 1]) >>>>>>> REPLACE ``` |
||
---|---|---|
.. | ||
blame.py | ||
Dockerfile.jekyll | ||
jekyll_build.sh | ||
jekyll_run.sh | ||
versionbump.py |