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
98020d3a
Commit
98020d3a
authored
Apr 21, 2014
by
Jacques Germishuys
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename progress callback to sideband_progress
parent
4f62163e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
include/git2/remote.h
+1
-1
src/remote.c
+2
-2
src/transports/smart_pkt.c
+2
-2
No files found.
include/git2/remote.h
View file @
98020d3a
...
...
@@ -457,7 +457,7 @@ struct git_remote_callbacks {
* progress side-band will be passed to this function (this is
* the 'counting objects' output.
*/
int
(
*
progress
)(
const
char
*
str
,
int
len
,
void
*
data
);
int
(
*
sideband_
progress
)(
const
char
*
str
,
int
len
,
void
*
data
);
/**
* Completion is called when different parts of the download
...
...
src/remote.c
View file @
98020d3a
...
...
@@ -663,7 +663,7 @@ int git_remote_connect(git_remote *remote, git_direction direction)
return
error
;
if
(
t
->
set_callbacks
&&
(
error
=
t
->
set_callbacks
(
t
,
remote
->
callbacks
.
progress
,
NULL
,
remote
->
callbacks
.
payload
))
<
0
)
(
error
=
t
->
set_callbacks
(
t
,
remote
->
callbacks
.
sideband_
progress
,
NULL
,
remote
->
callbacks
.
payload
))
<
0
)
goto
on_error
;
if
(
!
remote
->
check_cert
)
...
...
@@ -1246,7 +1246,7 @@ int git_remote_set_callbacks(git_remote *remote, const git_remote_callbacks *cal
if
(
remote
->
transport
&&
remote
->
transport
->
set_callbacks
)
return
remote
->
transport
->
set_callbacks
(
remote
->
transport
,
remote
->
callbacks
.
progress
,
remote
->
callbacks
.
sideband_
progress
,
NULL
,
remote
->
callbacks
.
payload
);
...
...
src/transports/smart_pkt.c
View file @
98020d3a
...
...
@@ -153,7 +153,7 @@ static int data_pkt(git_pkt **out, const char *line, size_t len)
return
0
;
}
static
int
progress_pkt
(
git_pkt
**
out
,
const
char
*
line
,
size_t
len
)
static
int
sideband_
progress_pkt
(
git_pkt
**
out
,
const
char
*
line
,
size_t
len
)
{
git_pkt_progress
*
pkt
;
...
...
@@ -403,7 +403,7 @@ int git_pkt_parse_line(
if
(
*
line
==
GIT_SIDE_BAND_DATA
)
ret
=
data_pkt
(
head
,
line
,
len
);
else
if
(
*
line
==
GIT_SIDE_BAND_PROGRESS
)
ret
=
progress_pkt
(
head
,
line
,
len
);
ret
=
sideband_
progress_pkt
(
head
,
line
,
len
);
else
if
(
*
line
==
GIT_SIDE_BAND_ERROR
)
ret
=
sideband_error_pkt
(
head
,
line
,
len
);
else
if
(
!
git__prefixcmp
(
line
,
"ACK"
))
...
...
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