This should avoid failures when the index grows larger than 4GB.
Update the index format header to 'BUPI\0\0\0\7' (version 7).
Thanks to phillipproell amd Wayne Scott for reporting the problem,
and helping track down the cause/fix.
Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Tested-by: Rob Browning <rlb@defaultvalue.org>
Signed-off-by: Rob Browning <rlb@defaultvalue.org>
EMPTY_SHA = '\0'*20
FAKE_SHA = '\x01'*20
-INDEX_HDR = 'BUPI\0\0\0\6'
+INDEX_HDR = 'BUPI\0\0\0\7'
# Time values are handled as integer nanoseconds since the epoch in
# memory, but are written as xstat/metadata timespecs. This behavior
'I' # gitmode
'20s' # sha
'H' # flags
- 'I' # children_ofs
+ 'Q' # children_ofs
'I' # children_n
'Q') # meta_ofs