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
f4ebb2d4
Commit
f4ebb2d4
authored
Jan 21, 2019
by
Edward Thomson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
blame: make hunk_cmp handle unsigned differences
parent
ae681d3f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletions
+6
-1
src/blame.c
+6
-1
No files found.
src/blame.c
View file @
f4ebb2d4
...
@@ -41,7 +41,12 @@ static int hunk_cmp(const void *_a, const void *_b)
...
@@ -41,7 +41,12 @@ static int hunk_cmp(const void *_a, const void *_b)
git_blame_hunk
*
a
=
(
git_blame_hunk
*
)
_a
,
git_blame_hunk
*
a
=
(
git_blame_hunk
*
)
_a
,
*
b
=
(
git_blame_hunk
*
)
_b
;
*
b
=
(
git_blame_hunk
*
)
_b
;
return
a
->
final_start_line_number
-
b
->
final_start_line_number
;
if
(
a
->
final_start_line_number
>
b
->
final_start_line_number
)
return
1
;
else
if
(
a
->
final_start_line_number
<
b
->
final_start_line_number
)
return
-
1
;
else
return
0
;
}
}
static
bool
hunk_ends_at_or_before_line
(
git_blame_hunk
*
hunk
,
size_t
line
)
static
bool
hunk_ends_at_or_before_line
(
git_blame_hunk
*
hunk
,
size_t
line
)
...
...
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