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 <mhagger@alum.mit.edu> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Michael Haggerty committed Apr 22, 2013 at 21:52 UTC 0c0c0bd25e4bea1fb1f48e8bca3ce9b68d69ee93
1 file changed +2 -2
pack-refs.c
+2 -2
@@ -23,7 +23,7 @@ static int do_not_prune(int flags)
23 return (flags & (REF_ISSYMREF|REF_ISPACKED));
24 }
25
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,
27 int flags, void *cb_data)
28 {
29 struct pack_refs_cb_data *cb = cb_data;
@@ -130,7 +130,7 @@ int pack_refs(unsigned int flags)
130 /* perhaps other traits later as well */
131 fprintf(cbdata.refs_file, "# pack-refs with: peeled fully-peeled \n");
132
133 - for_each_ref(handle_one_ref, &cbdata);
133 + for_each_ref(pack_one_ref, &cbdata);
134 if (ferror(cbdata.refs_file))
135 die("failed to write ref-pack file");
136 if (fflush(cbdata.refs_file) || fsync(fd) || fclose(cbdata.refs_file))