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
04e0c2b2
Commit
04e0c2b2
authored
Oct 30, 2013
by
Vicent Marti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pack-objects: Depth can be negative
parent
5c50f22a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
src/pack-objects.c
+3
-4
No files found.
src/pack-objects.c
View file @
04e0c2b2
...
...
@@ -824,7 +824,7 @@ static unsigned long free_unpacked(struct unpacked *n)
static
int
find_deltas
(
git_packbuilder
*
pb
,
git_pobject
**
list
,
unsigned
int
*
list_size
,
unsigned
int
window
,
unsigned
int
depth
)
int
depth
)
{
git_pobject
*
po
;
git_buf
zbuf
=
GIT_BUF_INIT
;
...
...
@@ -839,8 +839,7 @@ static int find_deltas(git_packbuilder *pb, git_pobject **list,
for
(;;)
{
struct
unpacked
*
n
=
array
+
idx
;
unsigned
int
max_depth
;
int
j
,
best_base
=
-
1
;
int
max_depth
,
j
,
best_base
=
-
1
;
git_packbuilder__progress_lock
(
pb
);
if
(
!*
list_size
)
{
...
...
@@ -1033,7 +1032,7 @@ static void *threaded_find_deltas(void *arg)
static
int
ll_find_deltas
(
git_packbuilder
*
pb
,
git_pobject
**
list
,
unsigned
int
list_size
,
unsigned
int
window
,
unsigned
int
depth
)
int
depth
)
{
struct
thread_params
*
p
;
int
i
,
ret
,
active_threads
=
0
;
...
...
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