Merge branch 'tb/pack-revindex-on-disk'
The on-disk reverse index that allows mapping from the pack offset to the object name for the object stored at the offset has been enabled by default. * tb/pack-revindex-on-disk: t: invert `GIT_TEST_WRITE_REV_INDEX` config: enable `pack.writeReverseIndex` by default pack-revindex: introduce `pack.readReverseIndex` pack-revindex: introduce GIT_TEST_REV_INDEX_DIE_ON_DISK pack-revindex: make `load_pack_revindex` take a repository t5325: mark as leak-free pack-write.c: plug a leak in stage_tmp_packfiles()
This commit is contained in:
@ -1756,12 +1756,13 @@ int cmd_index_pack(int argc, const char **argv, const char *prefix)
|
||||
fsck_options.walk = mark_link;
|
||||
|
||||
reset_pack_idx_option(&opts);
|
||||
opts.flags |= WRITE_REV;
|
||||
git_config(git_index_pack_config, &opts);
|
||||
if (prefix && chdir(prefix))
|
||||
die(_("Cannot come back to cwd"));
|
||||
|
||||
if (git_env_bool(GIT_TEST_WRITE_REV_INDEX, 0))
|
||||
rev_index = 1;
|
||||
if (git_env_bool(GIT_TEST_NO_WRITE_REV_INDEX, 0))
|
||||
rev_index = 0;
|
||||
else
|
||||
rev_index = !!(opts.flags & (WRITE_REV_VERIFY | WRITE_REV));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user