Skip to content

Commit 9578ee6

Browse files
committed
Handle "boundary commits" with a leading ^
Boundary commits in git have a leading ^ in front of the SHA.
1 parent ed3dc1d commit 9578ee6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git-diff-blame

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ sub parse_hunk_header {
1111

1212
sub get_blame_prefix {
1313
my ($line) = @_;
14-
$line =~ /^([0-9a-f]+\s+(\S+\s+)?\([^\)]+\))/ or die "bad blame output: $line";
14+
$line =~ /^(\^?[0-9a-f]+\s+(\S+\s+)?\([^\)]+\))/ or die "bad blame output: $line";
1515
return $1;
1616
}
1717

0 commit comments

Comments
 (0)