From: Junio C Hamano Date: Sat, 8 Jul 2023 18:23:07 +0000 (-0700) Subject: Merge branch 'js/empty-index-fixes' X-Git-Tag: v2.42.0-rc0~62 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7f5ad0ca8d1d7db7a21755af34251714d86b2ec1;p=thirdparty%2Fgit.git 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 --- 7f5ad0ca8d1d7db7a21755af34251714d86b2ec1