summaryrefslogtreecommitdiff
path: root/fetch-pack.c
diff options
context:
space:
mode:
authorChristian Couder <christian.couder@gmail.com>2021-01-12 08:21:58 (GMT)
committerJunio C Hamano <gitster@pobox.com>2021-01-13 00:01:07 (GMT)
commit9d7fa3be3145f1ad87bf5d4ddbf6ce8cb0e6a894 (patch)
tree6d6f995244895a237b63e102b150a34d3c88e4fb /fetch-pack.c
parent72c4083ddf91b489b7b7b812df67ee8842177d98 (diff)
downloadgit-9d7fa3be3145f1ad87bf5d4ddbf6ce8cb0e6a894.zip
git-9d7fa3be3145f1ad87bf5d4ddbf6ce8cb0e6a894.tar.gz
git-9d7fa3be3145f1ad87bf5d4ddbf6ce8cb0e6a894.tar.bz2
fetch-pack: rename helper to create_promisor_file()
As we are going to refactor the code that actually writes the promisor file into a separate function in a following commit, let's rename the current write_promisor_file() function to create_promisor_file(). Signed-off-by: Christian Couder <chriscool@tuxfamily.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'fetch-pack.c')
-rw-r--r--fetch-pack.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/fetch-pack.c b/fetch-pack.c
index 876f90c..c5fa499 100644
--- a/fetch-pack.c
+++ b/fetch-pack.c
@@ -772,8 +772,8 @@ static int sideband_demux(int in, int out, void *data)
return ret;
}
-static void write_promisor_file(const char *keep_name,
- struct ref **sought, int nr_sought)
+static void create_promisor_file(const char *keep_name,
+ struct ref **sought, int nr_sought)
{
struct strbuf promisor_name = STRBUF_INIT;
int suffix_stripped;
@@ -875,7 +875,7 @@ static int get_pack(struct fetch_pack_args *args,
if (args->from_promisor)
/*
- * write_promisor_file() may be called afterwards but
+ * create_promisor_file() may be called afterwards but
* we still need index-pack to know that this is a
* promisor pack. For example, if transfer.fsckobjects
* is true, index-pack needs to know that .gitmodules
@@ -943,7 +943,7 @@ static int get_pack(struct fetch_pack_args *args,
* obtained .keep filename if necessary
*/
if (do_keep && pack_lockfiles && pack_lockfiles->nr && args->from_promisor)
- write_promisor_file(pack_lockfiles->items[0].string, sought, nr_sought);
+ create_promisor_file(pack_lockfiles->items[0].string, sought, nr_sought);
return 0;
}