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
383fb799
Commit
383fb799
authored
Jul 31, 2012
by
Ben Straub
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename example function to avoid name collision.
parent
7e02c7c5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
examples/network/clone.c
+1
-1
examples/network/common.h
+1
-1
examples/network/git2.c
+1
-1
No files found.
examples/network/clone.c
View file @
383fb799
...
...
@@ -32,7 +32,7 @@ static void *clone_thread(void *ptr)
pthread_exit
(
&
data
->
ret
);
}
int
clone
(
git_repository
*
repo
,
int
argc
,
char
**
argv
)
int
do_
clone
(
git_repository
*
repo
,
int
argc
,
char
**
argv
)
{
struct
dl_data
data
=
{
0
};
pthread_t
worker
;
...
...
examples/network/common.h
View file @
383fb799
...
...
@@ -10,6 +10,6 @@ int parse_pkt_line(git_repository *repo, int argc, char **argv);
int
show_remote
(
git_repository
*
repo
,
int
argc
,
char
**
argv
);
int
fetch
(
git_repository
*
repo
,
int
argc
,
char
**
argv
);
int
index_pack
(
git_repository
*
repo
,
int
argc
,
char
**
argv
);
int
clone
(
git_repository
*
repo
,
int
argc
,
char
**
argv
);
int
do_
clone
(
git_repository
*
repo
,
int
argc
,
char
**
argv
);
#endif
/* __COMMON_H__ */
examples/network/git2.c
View file @
383fb799
...
...
@@ -12,7 +12,7 @@ struct {
}
commands
[]
=
{
{
"ls-remote"
,
ls_remote
},
{
"fetch"
,
fetch
},
{
"clone"
,
clone
},
{
"clone"
,
do_
clone
},
{
"index-pack"
,
index_pack
},
{
NULL
,
NULL
}
};
...
...
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