]> source.dussan.org Git - jgit.git/commit
CommitGraph: add commit-graph for FileObjectDatabase 78/183078/43
authorkylezhao <kylezhao@tencent.com>
Wed, 14 Jul 2021 02:52:10 +0000 (10:52 +0800)
committerkylezhao <kylezhao@tencent.com>
Fri, 23 Dec 2022 05:06:06 +0000 (13:06 +0800)
commit8a7348df6966da39c1402c8f51fa4f7a9aeb8e7e
treeffa7029fc05059c6ce4673c456af7d940d8cb850
parent6722f25d565c1acefefb232a45e690507bcd457a
CommitGraph: add commit-graph for FileObjectDatabase

This change makes JGit can read .git/objects/info/commit-graph file
and then get CommitGraph.

Loading a new commit-graph into memory requires additional time. After
testing, loading a copy of the Linux's commit-graph(1039139 commits)
is under 50ms.

Bug: 574368
Change-Id: Iadfdd6ed437945d3cdfdbe988cf541198140a8bf
Signed-off-by: kylezhao <kylezhao@tencent.com>
org.eclipse.jgit.test/tst/org/eclipse/jgit/internal/storage/file/ObjectDirectoryTest.java
org.eclipse.jgit/resources/org/eclipse/jgit/internal/JGitText.properties
org.eclipse.jgit/src/org/eclipse/jgit/internal/JGitText.java
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/CachedObjectDirectory.java
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/FileCommitGraph.java [new file with mode: 0644]
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/FileObjectDatabase.java
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/ObjectDirectory.java