mirror of
https://git.proxmox.com/git/libgit2
synced 2026-01-28 01:34:20 +00:00
Revert "pack: packfile_free -> git_packfile_free and use it in the indexers"
This reverts commit f289f886cb, which
makes the tests fail on Windows. Revert until we can figure out a
solution.
This commit is contained in:
parent
3f4437e714
commit
80d647adc3
@ -747,7 +747,7 @@ void git_indexer_stream_free(git_indexer_stream *idx)
|
||||
git_vector_foreach(&idx->deltas, i, delta)
|
||||
git__free(delta);
|
||||
git_vector_free(&idx->deltas);
|
||||
git_packfile_free(idx->pack);
|
||||
git__free(idx->pack);
|
||||
git__free(idx);
|
||||
}
|
||||
|
||||
@ -1059,7 +1059,7 @@ void git_indexer_free(git_indexer *idx)
|
||||
git_vector_foreach(&idx->pack->cache, i, pe)
|
||||
git__free(pe);
|
||||
git_vector_free(&idx->pack->cache);
|
||||
git_packfile_free(idx->pack);
|
||||
git__free(idx->pack);
|
||||
git__free(idx);
|
||||
}
|
||||
|
||||
|
||||
@ -538,7 +538,7 @@ static void pack_backend__free(git_odb_backend *_backend)
|
||||
|
||||
for (i = 0; i < backend->packs.length; ++i) {
|
||||
struct git_pack_file *p = git_vector_get(&backend->packs, i);
|
||||
git_packfile_free(p);
|
||||
packfile_free(p);
|
||||
}
|
||||
|
||||
git_vector_free(&backend->packs);
|
||||
|
||||
@ -794,7 +794,7 @@ static struct git_pack_file *packfile_alloc(size_t extra)
|
||||
}
|
||||
|
||||
|
||||
void git_packfile_free(struct git_pack_file *p)
|
||||
void packfile_free(struct git_pack_file *p)
|
||||
{
|
||||
assert(p);
|
||||
|
||||
|
||||
@ -139,7 +139,7 @@ git_off_t get_delta_base(struct git_pack_file *p, git_mwindow **w_curs,
|
||||
git_off_t *curpos, git_otype type,
|
||||
git_off_t delta_obj_offset);
|
||||
|
||||
void git_packfile_free(struct git_pack_file *p);
|
||||
void packfile_free(struct git_pack_file *p);
|
||||
int git_packfile_check(struct git_pack_file **pack_out, const char *path);
|
||||
int git_pack_entry_find(
|
||||
struct git_pack_entry *e,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user