Merge branch 'ps/object-source-management'

Code refactoring around object database sources.

* ps/object-source-management:
  odb: handle recreation of quarantine directories
  odb: handle changing a repository's commondir
  chdir-notify: add function to unregister listeners
  odb: handle initialization of sources in `odb_new()`
  http-push: stop setting up `the_repository` for each reference
  t/helper: stop setting up `the_repository` repeatedly
  builtin/index-pack: fix deferred fsck outside repos
  oidset: introduce `oidset_equal()`
  odb: move logic to disable ref updates into repo
  odb: refactor `odb_clear()` to `odb_free()`
  odb: adopt logic to close object databases
  setup: convert `set_git_dir()` to have file scope
  path: move `enter_repo()` into "setup.c"
This commit is contained in:
Junio C Hamano
2025-12-05 14:49:58 +09:00
31 changed files with 415 additions and 280 deletions

6
fsck.c
View File

@@ -1379,6 +1379,12 @@ int fsck_finish(struct fsck_options *options)
return ret;
}
bool fsck_has_queued_checks(struct fsck_options *options)
{
return !oidset_equal(&options->gitmodules_found, &options->gitmodules_done) ||
!oidset_equal(&options->gitattributes_found, &options->gitattributes_done);
}
void fsck_options_clear(struct fsck_options *options)
{
free(options->msg_type);