summaryrefslogtreecommitdiff
path: root/pack-refs.c
diff options
context:
space:
mode:
authorMichael Haggerty <mhagger@alum.mit.edu>2013-04-22 19:52:31 (GMT)
committerJunio C Hamano <gitster@pobox.com>2013-05-01 22:33:10 (GMT)
commit0c0c0bd25e4bea1fb1f48e8bca3ce9b68d69ee93 (patch)
treef9d3be3ab75df23cc36d1b990f12c7d1944fa11e /pack-refs.c
parentfec3137ffcc49d58e6388b1c61da902b031e01ca (diff)
downloadgit-0c0c0bd25e4bea1fb1f48e8bca3ce9b68d69ee93.zip
git-0c0c0bd25e4bea1fb1f48e8bca3ce9b68d69ee93.tar.gz
git-0c0c0bd25e4bea1fb1f48e8bca3ce9b68d69ee93.tar.bz2
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>
Diffstat (limited to 'pack-refs.c')
-rw-r--r--pack-refs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pack-refs.c b/pack-refs.c
index 4461f71..d840055 100644
--- a/pack-refs.c
+++ b/pack-refs.c
@@ -23,7 +23,7 @@ static int do_not_prune(int flags)
return (flags & (REF_ISSYMREF|REF_ISPACKED));
}
-static int handle_one_ref(const char *path, const unsigned char *sha1,
+static int pack_one_ref(const char *path, const unsigned char *sha1,
int flags, void *cb_data)
{
struct pack_refs_cb_data *cb = cb_data;
@@ -130,7 +130,7 @@ int pack_refs(unsigned int flags)
/* perhaps other traits later as well */
fprintf(cbdata.refs_file, "# pack-refs with: peeled fully-peeled \n");
- for_each_ref(handle_one_ref, &cbdata);
+ for_each_ref(pack_one_ref, &cbdata);
if (ferror(cbdata.refs_file))
die("failed to write ref-pack file");
if (fflush(cbdata.refs_file) || fsync(fd) || fclose(cbdata.refs_file))