Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
2b967226
Unverified
Commit
2b967226
authored
Apr 22, 2018
by
Edward Thomson
Committed by
GitHub
Apr 22, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4580 from pks-t/pks/diff-like-git-coalesce
blame_git: fix coalescing step never being executed
parents
0ad2372b
75203d03
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
src/blame_git.c
+8
-5
No files found.
src/blame_git.c
View file @
2b967226
...
...
@@ -623,6 +623,8 @@ static void coalesce(git_blame *blame)
int
git_blame__like_git
(
git_blame
*
blame
,
uint32_t
opt
)
{
int
error
=
0
;
while
(
true
)
{
git_blame__entry
*
ent
;
git_blame__origin
*
suspect
=
NULL
;
...
...
@@ -632,13 +634,13 @@ int git_blame__like_git(git_blame *blame, uint32_t opt)
if
(
!
ent
->
guilty
)
suspect
=
ent
->
suspect
;
if
(
!
suspect
)
return
0
;
/* all done */
break
;
/* We'll use this suspect later in the loop, so hold on to it for now. */
origin_incref
(
suspect
);
if
(
pass_blame
(
blame
,
suspect
,
opt
)
<
0
)
return
-
1
;
if
(
(
error
=
pass_blame
(
blame
,
suspect
,
opt
)
)
<
0
)
break
;
/* Take responsibility for the remaining entries */
for
(
ent
=
blame
->
ent
;
ent
;
ent
=
ent
->
next
)
{
...
...
@@ -652,9 +654,10 @@ int git_blame__like_git(git_blame *blame, uint32_t opt)
origin_decref
(
suspect
);
}
coalesce
(
blame
);
if
(
!
error
)
coalesce
(
blame
);
return
0
;
return
error
;
}
void
git_blame__free_entry
(
git_blame__entry
*
ent
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment