mirror of
https://github.com/ejwa/gitinspector.git
synced 2025-03-16 13:28:04 +01:00
The changes module no longer generates file diffs with 0 insertions/deletions.
Under certain conditions this could previously cause a division by zero in the timeline.TimelineData.get_multiplier() method.
This commit is contained in:
parent
2d3e8e673c
commit
4b1267ba39
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@ class FileDiff:
|
|||
@staticmethod
|
||||
def is_filediff_line(string):
|
||||
string = string.split("|")
|
||||
return string.__len__() == 2 and string[1].find("Bin") == -1
|
||||
return string.__len__() == 2 and string[1].find("Bin") == -1 and ('+' in string[1] or '-' in string[1])
|
||||
|
||||
@staticmethod
|
||||
def get_extension(string):
|
||||
|
|
Loading…
Add table
Reference in a new issue