rename got_fetch() to got_fetch_pack()
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
diff --git a/got/got.c b/got/got.c
index 14911d3..4ac41cc 100644
--- a/got/got.c
+++ b/got/got.c
@@ -1035,7 +1035,7 @@ cmd_clone(int argc, char *argv[])
if (err)
goto done;
- err = got_fetch(&pack_hash, &refs, &symrefs, fetchfd,
+ err = got_fetch_pack(&pack_hash, &refs, &symrefs, fetchfd,
proto, host, port, server_path, repo_name, branch_filter, repo);
if (err)
goto done;
diff --git a/include/got_fetch.h b/include/got_fetch.h
index 600d838..f3d2b15 100644
--- a/include/got_fetch.h
+++ b/include/got_fetch.h
@@ -24,7 +24,7 @@ const struct got_error *got_fetch_parse_uri(char **, char **, char **,
const struct got_error *got_fetch_connect(int *, const char *, const char *,
const char *, const char *);
-const struct got_error *got_fetch(struct got_object_id **,
+const struct got_error *got_fetch_pack(struct got_object_id **,
struct got_pathlist_head *, struct got_pathlist_head *, int,
const char *, const char *, const char *, const char *,
const char *, const char *, struct got_repository *);
diff --git a/lib/fetch.c b/lib/fetch.c
index 617c092..c35b104 100644
--- a/lib/fetch.c
+++ b/lib/fetch.c
@@ -298,10 +298,11 @@ done:
}
const struct got_error*
-got_fetch(struct got_object_id **pack_hash, struct got_pathlist_head *refs,
+got_fetch_pack(struct got_object_id **pack_hash, struct got_pathlist_head *refs,
struct got_pathlist_head *symrefs, int fetchfd, const char *proto,
const char *host, const char *port, const char *server_path,
- const char *repo_name, const char *branch_filter, struct got_repository *repo)
+ const char *repo_name, const char *branch_filter,
+ struct got_repository *repo)
{
int imsg_fetchfds[2], imsg_idxfds[2];
int packfd = -1, npackfd = -1, idxfd = -1, nidxfd = -1, nfetchfd = -1;