Skip to content

Commit 32decd7

Browse files
authored
Merge pull request #1858 from codeflash-ai/fix/add_lang_ext_support_to_diff
add_lang_ext_support_to_diff
2 parents 948bfed + 5ecbd46 commit 32decd7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

codeflash/code_utils/git_utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
from unidiff import PatchSet
1414

1515
from codeflash.cli_cmds.console import logger
16+
from codeflash.languages.registry import get_supported_extensions
1617

1718
if TYPE_CHECKING:
1819
from git import Repo
@@ -38,6 +39,7 @@ def get_git_diff(
3839
uni_diff_text = repository.git.diff(
3940
commit.hexsha + "^1", commit.hexsha, ignore_blank_lines=True, ignore_space_at_eol=True
4041
)
42+
supported_extensions = set(get_supported_extensions())
4143
patch_set = PatchSet(StringIO(uni_diff_text))
4244
change_list: dict[str, list[int]] = {} # list of changes
4345
for patched_file in patch_set:

0 commit comments

Comments
 (0)