Skip to content

Commit 647d879

Browse files
pcloudsgitster
authored andcommitted
update-index: list supported idx versions and their features
Signed-off-by: Nguyễn Thái Ngọc Duy <[email protected]> Reviewed-by: Jonathan Nieder <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent b82a7b5 commit 647d879

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

Documentation/git-update-index.txt

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,15 @@ you will need to handle the situation manually.
145145

146146
--index-version <n>::
147147
Write the resulting index out in the named on-disk format version.
148-
The current default version is 2.
148+
Supported versions are 2, 3 and 4. The current default version is 2
149+
or 3, depending on whether extra features are used, such as
150+
`git add -N`.
151+
+
152+
Version 4 performs a simple pathname compression that reduces index
153+
size by 30%-50% on large repositories, which results in faster load
154+
time. Version 4 is relatively young (first released in in 1.8.0 in
155+
October 2012). Other Git implementations such as JGit and libgit2
156+
may not support it yet.
149157

150158
-z::
151159
Only meaningful with `--stdin` or `--index-info`; paths are

0 commit comments

Comments
 (0)