mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-01 16:45:42 +00:00
Rename example function to avoid name collision.
This commit is contained in:
parent
7e02c7c56a
commit
383fb799ee
@ -32,7 +32,7 @@ static void *clone_thread(void *ptr)
|
|||||||
pthread_exit(&data->ret);
|
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};
|
struct dl_data data = {0};
|
||||||
pthread_t worker;
|
pthread_t worker;
|
||||||
|
@ -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 show_remote(git_repository *repo, int argc, char **argv);
|
||||||
int fetch(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 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__ */
|
#endif /* __COMMON_H__ */
|
||||||
|
@ -12,7 +12,7 @@ struct {
|
|||||||
} commands[] = {
|
} commands[] = {
|
||||||
{"ls-remote", ls_remote},
|
{"ls-remote", ls_remote},
|
||||||
{"fetch", fetch},
|
{"fetch", fetch},
|
||||||
{"clone", clone},
|
{"clone", do_clone},
|
||||||
{"index-pack", index_pack},
|
{"index-pack", index_pack},
|
||||||
{ NULL, NULL}
|
{ NULL, NULL}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user