Skip to content

Commit 0c0c0bd

Browse files
mhaggergitster
authored andcommitted
pack-refs: rename handle_one_ref() to pack_one_ref()
This code is about to be moved, so name the function more distinctively. Signed-off-by: Michael Haggerty <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent fec3137 commit 0c0c0bd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pack-refs.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ static int do_not_prune(int flags)
2323
return (flags & (REF_ISSYMREF|REF_ISPACKED));
2424
}
2525

26-
static int handle_one_ref(const char *path, const unsigned char *sha1,
26+
static int pack_one_ref(const char *path, const unsigned char *sha1,
2727
int flags, void *cb_data)
2828
{
2929
struct pack_refs_cb_data *cb = cb_data;
@@ -130,7 +130,7 @@ int pack_refs(unsigned int flags)
130130
/* perhaps other traits later as well */
131131
fprintf(cbdata.refs_file, "# pack-refs with: peeled fully-peeled \n");
132132

133-
for_each_ref(handle_one_ref, &cbdata);
133+
for_each_ref(pack_one_ref, &cbdata);
134134
if (ferror(cbdata.refs_file))
135135
die("failed to write ref-pack file");
136136
if (fflush(cbdata.refs_file) || fsync(fd) || fclose(cbdata.refs_file))

0 commit comments

Comments
 (0)