We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 662cf5e commit 6c3867aCopy full SHA for 6c3867a
git-blame.py
@@ -275,7 +275,9 @@ def parse_blame(self, blame):
275
def prepare_pattern(self):
276
'''Prepares the regex pattern to parse git blame output.
277
'''
278
- p_sha = r'(?P<sha>\w+)'
+ # The SHA output by git-blame may have a leading caret to indicate
279
+ # that it is a "boundary commit".
280
+ p_sha = r'(?P<sha>\^?\w+)'
281
p_author = r'(?P<author>.+?)'
282
p_date = r'(?P<date>\d{4}-\d{2}-\d{2})'
283
p_time = r'(?P<time>\d{2}:\d{2}:\d{2})'
0 commit comments