get number of lines really from src file

This commit is contained in:
Bence Pőcze 2023-09-14 15:16:07 +02:00
parent 0c6d71f719
commit a591f1c56d

View File

@ -33,7 +33,7 @@ class LineShiftChecker:
return file_list return file_list
def __get_shifted_lines_in_file(self, file_info) -> 'Dict[str, str | None]': def __get_shifted_lines_in_file(self, file_info) -> 'Dict[str, str | None]':
lines_in_source_file = self.__count_lines_in_source_file(file_info['dst']) lines_in_source_file = self.__count_lines_in_source_file(file_info['src'])
process_output = subprocess_readlines(['git', 'diff', f'-U{lines_in_source_file}', process_output = subprocess_readlines(['git', 'diff', f'-U{lines_in_source_file}',
self.revision_since, self.revision_until, '--', self.revision_since, self.revision_until, '--',
file_info['src'], file_info['dst']]) file_info['src'], file_info['dst']])