summaryrefslogtreecommitdiff
path: root/src/pack.h
diff options
context:
space:
mode:
authorRussell Belfer <rb@github.com>2013-04-16 15:00:43 -0700
committerVicent Marti <tanoku@gmail.com>2013-04-22 16:52:07 +0200
commit5d2d21e536b83ca2cbf8c026b3149fdf776c3f58 (patch)
tree87584f49bd93460782f162f5e5dac8af3ca15b83 /src/pack.h
parent38eef6113d8523abfe6746bf727cee2651398ad3 (diff)
downloadlibgit2-5d2d21e536b83ca2cbf8c026b3149fdf776c3f58.tar.gz
Consolidate packfile allocation further
Rename git_packfile_check to git_packfile_alloc since it is now being used more in that capacity. Fix the various places that use it. Consolidate some repeated code in odb_pack.c related to the allocation of a new pack_backend.
Diffstat (limited to 'src/pack.h')
-rw-r--r--src/pack.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pack.h b/src/pack.h
index b8014b1ea..aeeac9ce1 100644
--- a/src/pack.h
+++ b/src/pack.h
@@ -143,7 +143,8 @@ git_off_t get_delta_base(struct git_pack_file *p, git_mwindow **w_curs,
git_off_t delta_obj_offset);
void git_packfile_free(struct git_pack_file *p);
-int git_packfile_check(struct git_pack_file **pack_out, const char *path);
+int git_packfile_alloc(struct git_pack_file **pack_out, const char *path);
+
int git_pack_entry_find(
struct git_pack_entry *e,
struct git_pack_file *p,