]> git.ipfire.org Git - thirdparty/git.git/commit
Merge branch 'js/empty-index-fixes'
authorJunio C Hamano <gitster@pobox.com>
Sat, 8 Jul 2023 18:23:07 +0000 (11:23 -0700)
committerJunio C Hamano <gitster@pobox.com>
Sat, 8 Jul 2023 18:23:07 +0000 (11:23 -0700)
commit7f5ad0ca8d1d7db7a21755af34251714d86b2ec1
tree8b71767227de1c77adf50c36cc9f0d567046c9ba
parentd52a45cf5635f9f40a99ddc6efa92713f2d357b4
parent2ee045eea103e8818ffe0c4085fad3f6b535c8d6
Merge branch 'js/empty-index-fixes'

A few places failed to differenciate the case where the index is
truly empty (nothing added) and we haven't yet read from the
on-disk index file, which have been corrected.

* js/empty-index-fixes:
  commit -a -m: allow the top-level tree to become empty again
  split-index: accept that a base index can be empty
  do_read_index(): always mark index as initialized unless erroring out
builtin/commit.c
read-cache.c