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

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2021-09-23 23:44:45 +0300
committerJunio C Hamano <gitster@pobox.com>2021-09-23 23:44:46 +0300
commit28caad63d0f58611a22bf5b11e4914496ecb25b1 (patch)
treee93f71d16c3101bcd4b3fc17642dc1f540215774 /object-store.h
parent6c84b007c41638814137d296e75446a9b4865fd2 (diff)
parent09ef66179b943d03cbe0bea0603e5f40574695a1 (diff)
Merge branch 'rs/packfile-bad-object-list-in-oidset'
Replace a handcrafted data structure used to keep track of bad objects in the packfile API by an oidset. * rs/packfile-bad-object-list-in-oidset: packfile: use oidset for bad objects packfile: convert has_packed_and_bad() to object_id packfile: convert mark_bad_packed_object() to object_id midx: inline nth_midxed_pack_entry() oidset: make oidset_size() an inline function
Diffstat (limited to 'object-store.h')
-rw-r--r--object-store.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/object-store.h b/object-store.h
index ebc55274e6..c5130d8bae 100644
--- a/object-store.h
+++ b/object-store.h
@@ -10,6 +10,7 @@
#include "khash.h"
#include "dir.h"
#include "oidtree.h"
+#include "oidset.h"
struct object_directory {
struct object_directory *next;
@@ -76,9 +77,8 @@ struct packed_git {
const void *index_data;
size_t index_size;
uint32_t num_objects;
- uint32_t num_bad_objects;
uint32_t crc_offset;
- unsigned char *bad_object_sha1;
+ struct oidset bad_objects;
int index_version;
time_t mtime;
int pack_fd;