Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRussell Belfer <rb@github.com>2013-04-17 02:00:43 +0400
committerVicent Marti <tanoku@gmail.com>2013-04-22 18:52:07 +0400
commit5d2d21e536b83ca2cbf8c026b3149fdf776c3f58 (patch)
tree87584f49bd93460782f162f5e5dac8af3ca15b83 /src/indexer.c
parent38eef6113d8523abfe6746bf727cee2651398ad3 (diff)
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/indexer.c')
-rw-r--r--src/indexer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/indexer.c b/src/indexer.c
index 50a9d3a37..606771927 100644
--- a/src/indexer.c
+++ b/src/indexer.c
@@ -62,7 +62,7 @@ static int open_pack(struct git_pack_file **out, const char *filename)
{
struct git_pack_file *pack;
- if (git_packfile_check(&pack, filename) < 0)
+ if (git_packfile_alloc(&pack, filename) < 0)
return -1;
if ((pack->mwf.fd = p_open(pack->pack_name, O_RDONLY)) < 0) {