Skip to content

Commit 9d7fa3b

Browse files
chriscoolgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 72c4083 commit 9d7fa3b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

fetch-pack.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -772,8 +772,8 @@ static int sideband_demux(int in, int out, void *data)
772772
return ret;
773773
}
774774

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)
777777
{
778778
struct strbuf promisor_name = STRBUF_INIT;
779779
int suffix_stripped;
@@ -875,7 +875,7 @@ static int get_pack(struct fetch_pack_args *args,
875875

876876
if (args->from_promisor)
877877
/*
878-
* write_promisor_file() may be called afterwards but
878+
* create_promisor_file() may be called afterwards but
879879
* we still need index-pack to know that this is a
880880
* promisor pack. For example, if transfer.fsckobjects
881881
* is true, index-pack needs to know that .gitmodules
@@ -943,7 +943,7 @@ static int get_pack(struct fetch_pack_args *args,
943943
* obtained .keep filename if necessary
944944
*/
945945
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);
947947

948948
return 0;
949949
}

0 commit comments

Comments
 (0)