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>

Christian Couder committed Jan 12, 2021 at 09:21 UTC 9d7fa3be3145f1ad87bf5d4ddbf6ce8cb0e6a894
1 file changed +4 -4
fetch-pack.c
+4 -4
@@ -772,8 +772,8 @@ static int sideband_demux(int in, int out, void *data)
772 return ret;
773 }
774
775 -static void write_promisor_file(const char *keep_name,
776 - struct ref **sought, int nr_sought)
775 +static void create_promisor_file(const char *keep_name,
776 + struct ref **sought, int nr_sought)
777 {
778 struct strbuf promisor_name = STRBUF_INIT;
779 int suffix_stripped;
@@ -875,7 +875,7 @@ static int get_pack(struct fetch_pack_args *args,
875
876 if (args->from_promisor)
877 /*
878 - * write_promisor_file() may be called afterwards but
878 + * create_promisor_file() may be called afterwards but
879 * we still need index-pack to know that this is a
880 * promisor pack. For example, if transfer.fsckobjects
881 * is true, index-pack needs to know that .gitmodules
@@ -943,7 +943,7 @@ static int get_pack(struct fetch_pack_args *args,
943 * obtained .keep filename if necessary
944 */
945 if (do_keep && pack_lockfiles && pack_lockfiles->nr && args->from_promisor)
946 - write_promisor_file(pack_lockfiles->items[0].string, sought, nr_sought);
946 + create_promisor_file(pack_lockfiles->items[0].string, sought, nr_sought);
947
948 return 0;
949 }