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
a7d28f40
Commit
a7d28f40
authored
Oct 28, 2013
by
Ben Straub
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
❤
bool
parent
7f6db0ad
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
src/blame.h
+2
-2
src/blame_git.c
+1
-1
No files found.
src/blame.h
View file @
a7d28f40
...
@@ -42,11 +42,11 @@ typedef struct git_blame__entry {
...
@@ -42,11 +42,11 @@ typedef struct git_blame__entry {
/* true if the suspect is truly guilty; false while we have not
/* true if the suspect is truly guilty; false while we have not
* checked if the group came from one of its parents.
* checked if the group came from one of its parents.
*/
*/
char
guilty
;
bool
guilty
;
/* true if the entry has been scanned for copies in the current parent
/* true if the entry has been scanned for copies in the current parent
*/
*/
char
scanned
;
bool
scanned
;
/* the line number of the first line of this group in the
/* the line number of the first line of this group in the
* suspect's file; internally all line numbers are 0 based.
* suspect's file; internally all line numbers are 0 based.
...
...
src/blame_git.c
View file @
a7d28f40
...
@@ -602,7 +602,7 @@ void git_blame__like_git(git_blame *blame, uint32_t opt)
...
@@ -602,7 +602,7 @@ void git_blame__like_git(git_blame *blame, uint32_t opt)
/* Take responsibility for the remaining entries */
/* Take responsibility for the remaining entries */
for
(
ent
=
blame
->
ent
;
ent
;
ent
=
ent
->
next
)
{
for
(
ent
=
blame
->
ent
;
ent
;
ent
=
ent
->
next
)
{
if
(
same_suspect
(
ent
->
suspect
,
suspect
))
{
if
(
same_suspect
(
ent
->
suspect
,
suspect
))
{
ent
->
guilty
=
1
;
ent
->
guilty
=
true
;
ent
->
is_boundary
=
!
git_oid_cmp
(
ent
->
is_boundary
=
!
git_oid_cmp
(
git_commit_id
(
suspect
->
commit
),
git_commit_id
(
suspect
->
commit
),
&
blame
->
options
.
oldest_commit
);
&
blame
->
options
.
oldest_commit
);
...
...
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