-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enhance git_diff_context to handle file renaming and deletion
This commit enhances the `git_diff_context` function in `aicodebot/helpers.py` to handle file renaming and deletion. Previously, the function only handled new and modified files. Now, it can also handle renamed and deleted files. The changes include: - Splitting the status code and file name(s) into separate variables. - Adding conditions to handle different status codes: 'A' for new files, 'R' for renamed files, and 'D' for deleted files. - Updating the `tests/test_helpers.py` to include tests for the new functionality. This enhancement provides a more comprehensive overview of changes in the git repository.
- Loading branch information
1 parent
6e6c121
commit 5c27b8c
Showing
2 changed files
with
30 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters