environ: GIT_INDEX_VERSION affects not just a new repository

The variable is consulted whenever we write the index file.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Junio C Hamano 2022-09-15 09:06:59 -07:00
Родитель b724df6b55
Коммит 819fb68222
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -460,8 +460,8 @@ Git so take care if using a foreign front-end.
is used. is used.
`GIT_INDEX_VERSION`:: `GIT_INDEX_VERSION`::
This environment variable allows the specification of an index This environment variable specifies what index version is used
version for new repositories. It won't affect existing index when writing the index file out. It won't affect existing index
files. By default index file version 2 or 3 is used. See files. By default index file version 2 or 3 is used. See
linkgit:git-update-index[1] for more information. linkgit:git-update-index[1] for more information.