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
48e60ae7
Commit
48e60ae7
authored
Apr 21, 2014
by
Jacques Germishuys
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't redefine the same callback types, their signatures may change
parent
98020d3a
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
21 additions
and
21 deletions
+21
-21
examples/network/fetch.c
+1
-1
include/git2/indexer.h
+1
-1
include/git2/odb.h
+1
-1
include/git2/pack.h
+1
-1
include/git2/remote.h
+3
-3
include/git2/sys/odb_backend.h
+1
-1
include/git2/transport.h
+1
-1
include/git2/types.h
+1
-1
src/fetch.h
+1
-1
src/indexer.c
+2
-2
src/odb.c
+1
-1
src/odb_pack.c
+1
-1
src/pack-objects.c
+1
-1
src/transports/local.c
+2
-2
src/transports/smart.h
+1
-1
src/transports/smart_protocol.c
+2
-2
No files found.
examples/network/fetch.c
View file @
48e60ae7
...
...
@@ -97,7 +97,7 @@ int fetch(git_repository *repo, int argc, char **argv)
// Set up the callbacks (only update_tips for now)
callbacks
.
update_tips
=
&
update_cb
;
callbacks
.
progress
=
&
progress_cb
;
callbacks
.
sideband_
progress
=
&
progress_cb
;
callbacks
.
credentials
=
cred_acquire_cb
;
git_remote_set_callbacks
(
remote
,
&
callbacks
);
...
...
include/git2/indexer.h
View file @
48e60ae7
...
...
@@ -32,7 +32,7 @@ GIT_EXTERN(int) git_indexer_new(
const
char
*
path
,
unsigned
int
mode
,
git_odb
*
odb
,
git_transfer_progress_c
allback
progress_cb
,
git_transfer_progress_c
b
progress_cb
,
void
*
progress_cb_payload
);
/**
...
...
include/git2/odb.h
View file @
48e60ae7
...
...
@@ -338,7 +338,7 @@ GIT_EXTERN(int) git_odb_open_rstream(git_odb_stream **out, git_odb *db, const gi
GIT_EXTERN
(
int
)
git_odb_write_pack
(
git_odb_writepack
**
out
,
git_odb
*
db
,
git_transfer_progress_c
allback
progress_cb
,
git_transfer_progress_c
b
progress_cb
,
void
*
progress_payload
);
/**
...
...
include/git2/pack.h
View file @
48e60ae7
...
...
@@ -140,7 +140,7 @@ GIT_EXTERN(int) git_packbuilder_write(
git_packbuilder
*
pb
,
const
char
*
path
,
unsigned
int
mode
,
git_transfer_progress_c
allback
progress_cb
,
git_transfer_progress_c
b
progress_cb
,
void
*
progress_cb_payload
);
/**
...
...
include/git2/remote.h
View file @
48e60ae7
...
...
@@ -457,7 +457,7 @@ struct git_remote_callbacks {
* progress side-band will be passed to this function (this is
* the 'counting objects' output.
*/
int
(
*
sideband_progress
)(
const
char
*
str
,
int
len
,
void
*
data
)
;
git_transport_message_cb
sideband_progress
;
/**
* Completion is called when different parts of the download
...
...
@@ -469,14 +469,14 @@ struct git_remote_callbacks {
* This will be called if the remote host requires
* authentication in order to connect to it.
*/
int
(
*
credentials
)(
git_cred
**
cred
,
const
char
*
url
,
const
char
*
username_from_url
,
unsigned
int
allowed_types
,
void
*
data
)
;
git_cred_acquire_cb
credentials
;
/**
* During the download of new data, this will be regularly
* called with the current count of progress done by the
* indexer.
*/
int
(
*
transfer_progress
)(
const
git_transfer_progress
*
stats
,
void
*
data
)
;
git_transfer_progress_cb
transfer_progress
;
/**
* Each time a reference is updated locally, this function
...
...
include/git2/sys/odb_backend.h
View file @
48e60ae7
...
...
@@ -81,7 +81,7 @@ struct git_odb_backend {
int
(
*
writepack
)(
git_odb_writepack
**
,
git_odb_backend
*
,
git_odb
*
odb
,
git_transfer_progress_c
allback
progress_cb
,
void
*
progress_payload
);
git_transfer_progress_c
b
progress_cb
,
void
*
progress_payload
);
void
(
*
free
)(
git_odb_backend
*
);
};
...
...
include/git2/transport.h
View file @
48e60ae7
...
...
@@ -287,7 +287,7 @@ struct git_transport {
git_transport
*
transport
,
git_repository
*
repo
,
git_transfer_progress
*
stats
,
git_transfer_progress_c
allback
progress_cb
,
git_transfer_progress_c
b
progress_cb
,
void
*
progress_payload
);
/* Checks to see if the transport is connected */
...
...
include/git2/types.h
View file @
48e60ae7
...
...
@@ -241,7 +241,7 @@ typedef struct git_transfer_progress {
* @param stats Structure containing information about the state of the transfer
* @param payload Payload provided by caller
*/
typedef
int
(
*
git_transfer_progress_c
allback
)(
const
git_transfer_progress
*
stats
,
void
*
payload
);
typedef
int
(
*
git_transfer_progress_c
b
)(
const
git_transfer_progress
*
stats
,
void
*
payload
);
/**
* Opaque structure representing a submodule.
...
...
src/fetch.h
View file @
48e60ae7
...
...
@@ -17,7 +17,7 @@ int git_fetch__download_pack(
git_transport
*
t
,
git_repository
*
repo
,
git_transfer_progress
*
stats
,
git_transfer_progress_c
allback
progress_cb
,
git_transfer_progress_c
b
progress_cb
,
void
*
progress_payload
);
int
git_fetch_setup_walk
(
git_revwalk
**
out
,
git_repository
*
repo
);
...
...
src/indexer.c
View file @
48e60ae7
...
...
@@ -45,7 +45,7 @@ struct git_indexer {
unsigned
int
fanout
[
256
];
git_hash_ctx
hash_ctx
;
git_oid
hash
;
git_transfer_progress_c
allback
progress_cb
;
git_transfer_progress_c
b
progress_cb
;
void
*
progress_payload
;
char
objbuf
[
8
*
1024
];
...
...
@@ -120,7 +120,7 @@ int git_indexer_new(
const
char
*
prefix
,
unsigned
int
mode
,
git_odb
*
odb
,
git_transfer_progress_c
allback
progress_cb
,
git_transfer_progress_c
b
progress_cb
,
void
*
progress_payload
)
{
git_indexer
*
idx
;
...
...
src/odb.c
View file @
48e60ae7
...
...
@@ -1051,7 +1051,7 @@ int git_odb_open_rstream(git_odb_stream **stream, git_odb *db, const git_oid *oi
return
error
;
}
int
git_odb_write_pack
(
struct
git_odb_writepack
**
out
,
git_odb
*
db
,
git_transfer_progress_c
allback
progress_cb
,
void
*
progress_payload
)
int
git_odb_write_pack
(
struct
git_odb_writepack
**
out
,
git_odb
*
db
,
git_transfer_progress_c
b
progress_cb
,
void
*
progress_payload
)
{
size_t
i
,
writes
=
0
;
int
error
=
GIT_ERROR
;
...
...
src/odb_pack.c
View file @
48e60ae7
...
...
@@ -563,7 +563,7 @@ static void pack_backend__writepack_free(struct git_odb_writepack *_writepack)
static
int
pack_backend__writepack
(
struct
git_odb_writepack
**
out
,
git_odb_backend
*
_backend
,
git_odb
*
odb
,
git_transfer_progress_c
allback
progress_cb
,
git_transfer_progress_c
b
progress_cb
,
void
*
progress_payload
)
{
struct
pack_backend
*
backend
;
...
...
src/pack-objects.c
View file @
48e60ae7
...
...
@@ -1288,7 +1288,7 @@ int git_packbuilder_write(
git_packbuilder
*
pb
,
const
char
*
path
,
unsigned
int
mode
,
git_transfer_progress_c
allback
progress_cb
,
git_transfer_progress_c
b
progress_cb
,
void
*
progress_cb_payload
)
{
git_indexer
*
indexer
;
...
...
src/transports/local.c
View file @
48e60ae7
...
...
@@ -472,7 +472,7 @@ on_error:
typedef
struct
foreach_data
{
git_transfer_progress
*
stats
;
git_transfer_progress_c
allback
progress_cb
;
git_transfer_progress_c
b
progress_cb
;
void
*
progress_payload
;
git_odb_writepack
*
writepack
;
}
foreach_data
;
...
...
@@ -489,7 +489,7 @@ static int local_download_pack(
git_transport
*
transport
,
git_repository
*
repo
,
git_transfer_progress
*
stats
,
git_transfer_progress_c
allback
progress_cb
,
git_transfer_progress_c
b
progress_cb
,
void
*
progress_payload
)
{
transport_local
*
t
=
(
transport_local
*
)
transport
;
...
...
src/transports/smart.h
View file @
48e60ae7
...
...
@@ -167,7 +167,7 @@ int git_smart__download_pack(
git_transport
*
transport
,
git_repository
*
repo
,
git_transfer_progress
*
stats
,
git_transfer_progress_c
allback
progress_cb
,
git_transfer_progress_c
b
progress_cb
,
void
*
progress_payload
);
/* smart.c */
...
...
src/transports/smart_protocol.c
View file @
48e60ae7
...
...
@@ -450,7 +450,7 @@ static int no_sideband(transport_smart *t, struct git_odb_writepack *writepack,
struct
network_packetsize_payload
{
git_transfer_progress_c
allback
callback
;
git_transfer_progress_c
b
callback
;
void
*
payload
;
git_transfer_progress
*
stats
;
size_t
last_fired_bytes
;
...
...
@@ -478,7 +478,7 @@ int git_smart__download_pack(
git_transport
*
transport
,
git_repository
*
repo
,
git_transfer_progress
*
stats
,
git_transfer_progress_c
allback
transfer_progress_cb
,
git_transfer_progress_c
b
transfer_progress_cb
,
void
*
progress_payload
)
{
transport_smart
*
t
=
(
transport_smart
*
)
transport
;
...
...
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