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
e181a649
Unverified
Commit
e181a649
authored
Sep 18, 2018
by
Edward Thomson
Committed by
GitHub
Sep 18, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4809 from libgit2/cmn/revwalk-sign-regression
Fix revwalk limiting regression
parents
744d8388
12a1790d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
src/revwalk.c
+9
-3
No files found.
src/revwalk.c
View file @
e181a649
...
...
@@ -388,10 +388,16 @@ static int still_interesting(git_commit_list *list, int64_t time, int slop)
if
(
!
list
)
return
0
;
/*
* If the destination list has commits with an earlier date than our
* source, we want to reset the slop counter as we're not done.
*/
if
(
time
<=
list
->
item
->
time
)
return
SLOP
;
for
(;
list
;
list
=
list
->
next
)
{
/*
* If the destination list has commits with an earlier date than
* our source or if it still contains interesting commits we
* If the destination list still contains interesting commits we
* want to continue looking.
*/
if
(
!
list
->
item
->
uninteresting
||
list
->
item
->
time
>
time
)
...
...
@@ -405,7 +411,7 @@ static int still_interesting(git_commit_list *list, int64_t time, int slop)
static
int
limit_list
(
git_commit_list
**
out
,
git_revwalk
*
walk
,
git_commit_list
*
commits
)
{
int
error
,
slop
=
SLOP
;
int64_t
time
=
~
0ll
;
int64_t
time
=
INT64_MAX
;
git_commit_list
*
list
=
commits
;
git_commit_list
*
newlist
=
NULL
;
git_commit_list
**
p
=
&
newlist
;
...
...
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