Rename example function to avoid name collision.

This commit is contained in:
Ben Straub 2012-07-31 08:51:38 -07:00
parent 7e02c7c56a
commit 383fb799ee
3 changed files with 3 additions and 3 deletions

View File

@ -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;

View File

@ -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__ */

View File

@ -12,7 +12,7 @@ struct {
} commands[] = {
{"ls-remote", ls_remote},
{"fetch", fetch},
{"clone", clone},
{"clone", do_clone},
{"index-pack", index_pack},
{ NULL, NULL}
};