diff options
| author | Russell Belfer <rb@github.com> | 2013-04-16 15:00:43 -0700 |
|---|---|---|
| committer | Vicent Marti <tanoku@gmail.com> | 2013-04-22 16:52:07 +0200 |
| commit | 5d2d21e536b83ca2cbf8c026b3149fdf776c3f58 (patch) | |
| tree | 87584f49bd93460782f162f5e5dac8af3ca15b83 /src/pack.c | |
| parent | 38eef6113d8523abfe6746bf727cee2651398ad3 (diff) | |
| download | libgit2-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.c')
| -rw-r--r-- | src/pack.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pack.c b/src/pack.c index 8e8a01aa9..33cdf760a 100644 --- a/src/pack.c +++ b/src/pack.c @@ -885,7 +885,7 @@ cleanup: return -1; } -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) { struct stat st; struct git_pack_file *p; |
