diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2022-01-22 09:03:34 -0500 |
---|---|---|
committer | Edward Thomson <ethomson@edwardthomson.com> | 2022-01-22 17:36:31 -0500 |
commit | 0ec5855f8e3867b0bb0620f709382437933e71c4 (patch) | |
tree | 2f546e3b89169bdad1e5bc4131ac203f67c6f196 /src/midx.h | |
parent | ef6acbaf5bb7eedf7d61436f5cc438bd6ccf1547 (diff) | |
download | libgit2-ethomson/oidmadness.tar.gz |
midx: use raw oidsethomson/oidmadness
The multi-pack index uses raw object IDs, use a raw type for them.
Diffstat (limited to 'src/midx.h')
-rw-r--r-- | src/midx.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/midx.h b/src/midx.h index 7dd851bd3..591e0e1bb 100644 --- a/src/midx.h +++ b/src/midx.h @@ -17,6 +17,7 @@ #include "map.h" #include "mwindow.h" #include "odb.h" +#include "oid.h" /* * A multi-pack-index file. @@ -40,7 +41,7 @@ typedef struct git_midx_file { uint32_t num_objects; /* The OID Lookup table. */ - git_oid *oid_lookup; + git_oid_raw *oid_lookup; /* The Object Offsets table. Each entry has two 4-byte fields with the pack index and the offset. */ const unsigned char *object_offsets; |