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
9d5f12ff
Commit
9d5f12ff
authored
Dec 12, 2016
by
Carlos Martín Nieto
Committed by
GitHub
Dec 12, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4018 from pks-t/pks/various-fixes
Various fixes
parents
8339c660
34b32053
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
13 additions
and
12 deletions
+13
-12
src/graph.c
+1
-1
src/odb_mempack.c
+1
-1
src/pack.c
+3
-1
src/patch_generate.c
+1
-1
src/path.c
+0
-1
src/revwalk.c
+1
-1
src/transports/smart_protocol.c
+5
-5
tests/clar_libgit2.h
+1
-1
No files found.
src/graph.c
View file @
9d5f12ff
...
...
@@ -59,7 +59,7 @@ static int mark_parents(git_revwalk *walk, git_commit_list_node *one,
/* as long as there are non-STALE commits */
while
(
interesting
(
&
list
,
roots
))
{
git_commit_list_node
*
commit
=
git_pqueue_pop
(
&
list
);
int
flags
;
unsigned
int
flags
;
if
(
commit
==
NULL
)
break
;
...
...
src/odb_mempack.c
View file @
9d5f12ff
...
...
@@ -24,7 +24,7 @@ struct memobject {
git_oid
oid
;
size_t
len
;
git_otype
type
;
char
data
[];
char
data
[
GIT_FLEX_ARRAY
];
};
struct
memory_packer_db
{
...
...
src/pack.c
View file @
9d5f12ff
...
...
@@ -509,8 +509,10 @@ int git_packfile_resolve_header(
git_packfile_stream_free
(
&
stream
);
if
(
error
<
0
)
return
error
;
}
else
}
else
{
*
size_p
=
size
;
base_offset
=
0
;
}
while
(
type
==
GIT_OBJ_OFS_DELTA
||
type
==
GIT_OBJ_REF_DELTA
)
{
curpos
=
base_offset
;
...
...
src/patch_generate.c
View file @
9d5f12ff
...
...
@@ -284,7 +284,7 @@ static int create_binary(
size_t
b_datalen
)
{
git_buf
deflate
=
GIT_BUF_INIT
,
delta
=
GIT_BUF_INIT
;
size_t
delta_data_len
;
size_t
delta_data_len
=
0
;
int
error
;
/* The git_delta function accepts unsigned long only */
...
...
src/path.c
View file @
9d5f12ff
...
...
@@ -1145,7 +1145,6 @@ int git_path_diriter_init(
unsigned
int
flags
)
{
git_win32_path
path_filter
;
git_buf
hack
=
{
0
};
static
int
is_win7_or_later
=
-
1
;
if
(
is_win7_or_later
<
0
)
...
...
src/revwalk.c
View file @
9d5f12ff
...
...
@@ -290,7 +290,7 @@ static void mark_parents_uninteresting(git_commit_list_node *commit)
while
(
parents
)
{
git_commit_list_node
*
commit
=
git_commit_list_pop
(
&
parents
);
commit
=
git_commit_list_pop
(
&
parents
);
while
(
commit
)
{
if
(
commit
->
uninteresting
)
...
...
src/transports/smart_protocol.c
View file @
9d5f12ff
...
...
@@ -412,12 +412,12 @@ int git_smart__negotiate_fetch(git_transport *transport, git_repository *repo, c
if
(
i
%
20
==
0
&&
t
->
rpc
)
{
git_pkt_ack
*
pkt
;
unsigned
int
i
;
unsigned
int
j
;
if
((
error
=
git_pkt_buffer_wants
(
wants
,
count
,
&
t
->
caps
,
&
data
))
<
0
)
goto
on_error
;
git_vector_foreach
(
&
t
->
common
,
i
,
pkt
)
{
git_vector_foreach
(
&
t
->
common
,
j
,
pkt
)
{
if
((
error
=
git_pkt_buffer_have
(
&
pkt
->
oid
,
&
data
))
<
0
)
goto
on_error
;
}
...
...
@@ -432,12 +432,12 @@ int git_smart__negotiate_fetch(git_transport *transport, git_repository *repo, c
/* Tell the other end that we're done negotiating */
if
(
t
->
rpc
&&
t
->
common
.
length
>
0
)
{
git_pkt_ack
*
pkt
;
unsigned
int
i
;
unsigned
int
j
;
if
((
error
=
git_pkt_buffer_wants
(
wants
,
count
,
&
t
->
caps
,
&
data
))
<
0
)
goto
on_error
;
git_vector_foreach
(
&
t
->
common
,
i
,
pkt
)
{
git_vector_foreach
(
&
t
->
common
,
j
,
pkt
)
{
if
((
error
=
git_pkt_buffer_have
(
&
pkt
->
oid
,
&
data
))
<
0
)
goto
on_error
;
}
...
...
@@ -728,7 +728,7 @@ static int add_push_report_pkt(git_push *push, git_pkt *pkt)
static
int
add_push_report_sideband_pkt
(
git_push
*
push
,
git_pkt_data
*
data_pkt
,
git_buf
*
data_pkt_buf
)
{
git_pkt
*
pkt
;
const
char
*
line
,
*
line_end
;
const
char
*
line
,
*
line_end
=
NULL
;
size_t
line_len
;
int
error
;
int
reading_from_buf
=
data_pkt_buf
->
size
>
0
;
...
...
tests/clar_libgit2.h
View file @
9d5f12ff
...
...
@@ -79,7 +79,7 @@ typedef struct {
} \
} while (0)
static
void
cl_git_thread_check
(
void
*
data
)
GIT_INLINE
(
void
)
cl_git_thread_check
(
void
*
data
)
{
cl_git_thread_err
*
threaderr
=
(
cl_git_thread_err
*
)
data
;
if
(
threaderr
->
error
!=
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