Community
Participate
Working Groups
When attempting to perform certain commands on a repository using index version 4, JGit fails to be able to read the index, as it only supports up to version 3. Caused by: org.eclipse.jgit.errors.CorruptObjectException: Unknown DIRC version 4 at org.eclipse.jgit.dircache.DirCache.readFrom(DirCache.java:453) at org.eclipse.jgit.dircache.DirCache.read(DirCache.java:396) at org.eclipse.jgit.dircache.DirCache.read(DirCache.java:188) at org.eclipse.jgit.dircache.DirCache.read(DirCache.java:160) at org.eclipse.jgit.lib.Repository.readDirCache(Repository.java:1239) at org.eclipse.jgit.lib.IndexDiff.diff(IndexDiff.java:444) at org.eclipse.jgit.lib.IndexDiff.diff(IndexDiff.java:379) at org.eclipse.jgit.lib.IndexDiff.diff(IndexDiff.java:354) at org.eclipse.jgit.api.StatusCommand.call(StatusCommand.java:122) ... 14 more Is support for version 4 going to be coming soon? Git documentation says that support for index version 4 was been released almost 8 years ago: > Version 4 performs a simple pathname compression that reduces index size by 30%-50% on large repositories, which results in faster load time. Version 4 is relatively young (first released in 1.8.0 in October 2012) https://git-scm.com/docs/git-update-index#Documentation/git-update-index.txt---index-versionltngt
New Gerrit change created: https://git.eclipse.org/r/c/jgit/jgit/+/167503
(In reply to Eclipse Genie from comment #1) > New Gerrit change created: https://git.eclipse.org/r/c/jgit/jgit/+/167503 (In reply to Christian De Angelis from comment #0) > Is support for version 4 going to be coming soon? There it is, but I don't know how soon it'll be reviewed and merged.
Gerrit change https://git.eclipse.org/r/c/jgit/jgit/+/167503 was merged to [master]. Commit: http://git.eclipse.org/c/jgit/jgit.git/commit/?id=e9cb0a8e475f796e22d01fae63f5820e1fd1f318