Add deleted files section and count their tokens

This commit is contained in:
Hussam.lawen
2023-07-06 12:21:27 +03:00
parent e3b2469e0f
commit 795f6ab8d5
2 changed files with 22 additions and 5 deletions

View File

@ -96,7 +96,7 @@ def handle_patch_deletions(patch: str, original_file_content_str: str,
# logic for handling deleted files - don't show patch, just show that the file was deleted
if settings.config.verbosity_level > 0:
logging.info(f"Processing file: {file_name}, minimizing deletion file")
patch = "File was deleted\n"
patch = None # file was deleted
else:
patch_lines = patch.splitlines()
patch_new = omit_deletion_hunks(patch_lines)