]> git.ipfire.org Git - thirdparty/git.git/commit - read-cache.c
eoie: default to not writing EOIE section
authorJonathan Nieder <jrnieder@gmail.com>
Tue, 20 Nov 2018 06:11:47 +0000 (22:11 -0800)
committerJunio C Hamano <gitster@pobox.com>
Wed, 21 Nov 2018 04:43:06 +0000 (13:43 +0900)
commitd8465500c3d5ced194585eea05b2a6dccfaa6366
treee6f89f28df459adba18f1f5de8ae748d3604acf7
parentbb75be6cb916297f271c846f2f9caa3daaaec718
eoie: default to not writing EOIE section

Since 3b1d9e04 (eoie: add End of Index Entry (EOIE) extension,
2018-10-10) Git defaults to writing the new EOIE section when writing
out an index file.  Usually that is a good thing because it improves
threaded performance, but when a Git repository is shared with older
versions of Git, it produces a confusing warning:

  $ git status
  ignoring EOIE extension
  HEAD detached at 371ed0defa
  nothing to commit, working tree clean

Let's introduce the new index extension more gently.  First we'll roll
out the new version of Git that understands it, and then once
sufficiently many users are using such a version, we can flip the
default to writing it by default.

Introduce a '[index] recordEndOfIndexEntries' configuration variable
to allow interested users to benefit from this index extension early.

Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/config/index.txt
read-cache.c
t/t1700-split-index.sh