Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
pack-refs: rename handle_one_ref() to pack_one_ref()
author
Michael Haggerty
<mhagger@alum.mit.edu>
Mon, 22 Apr 2013 19:52:31 +0000
(21:52 +0200)
committer
Junio C Hamano
<gitster@pobox.com>
Wed, 1 May 2013 22:33:10 +0000
(15:33 -0700)
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>
pack-refs.c
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
fec3137
)
diff --git
a/pack-refs.c
b/pack-refs.c
index 4461f71a37bea5d935409761cc8a838bff443439..d84005512147b9cad0b632171d6b74aef5a9ab85 100644
(file)
--- 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));
}
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;
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");
/* 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))
if (ferror(cbdata.refs_file))
die("failed to write ref-pack file");
if (fflush(cbdata.refs_file) || fsync(fd) || fclose(cbdata.refs_file))