Merge branch 'ab/cache-api-cleanup'
commit8844c1125eae13a9e9dc7d68909cc73497e8d4b0
authorJunio C Hamano <gitster@pobox.com>
Mon, 23 Jan 2023 21:39:49 +0000 (23 13:39 -0800)
committerJunio C Hamano <gitster@pobox.com>
Mon, 23 Jan 2023 21:39:49 +0000 (23 13:39 -0800)
tree8d97eccb1584b147364199463232939cf35423a0
parent56c8fb1e95377900ec9d53c07886022af0a5d3c2
parent2f6b1eb794ee1f152c1a4b519e3b6dcecd0b487f
Merge branch 'ab/cache-api-cleanup'

Code clean-up to tighten the use of in-core index in the API.

* ab/cache-api-cleanup:
  cache API: add a "INDEX_STATE_INIT" macro/function, add release_index()
  read-cache.c: refactor set_new_index_sparsity() for subsequent commit
  sparse-index API: BUG() out on NULL ensure_full_index()
  sparse-index.c: expand_to_path() can assume non-NULL "istate"
  builtin/difftool.c: { 0 }-initialize rather than using memset()
read-cache.c