Skip to content

Commit 94aea9a

Browse files
authored
Merge pull request #13 from frou/fix-date-heuristic
Fix date vs surname heuristic
2 parents b59c58b + 5f46fd2 commit 94aea9a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

git-blame.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def parse_blame(self, blame):
9595
# Fix an issue where the username has a space
9696
# Im going to need to do something better though if people
9797
# start to have multiple spaces in their names.
98-
if not isinstance(date[0], int):
98+
if not date[0].isdigit():
9999
user = "{0} {1}".format(user, date)
100100
date, time = time, tz_offset
101101

@@ -162,4 +162,3 @@ def run(self, edit, desc):
162162
view.set_scratch(True)
163163
view.set_syntax_file('Packages/Diff/Diff.sublime-syntax')
164164
view.insert(edit, 0, desc)
165-

0 commit comments

Comments
 (0)