]> source.dussan.org Git - jgit.git/commit
CommitGraph: teach ObjectReader to get commit-graph 29/197629/12
authorkylezhao <kylezhao@tencent.com>
Mon, 12 Dec 2022 06:49:16 +0000 (14:49 +0800)
committerkylezhao <kylezhao@tencent.com>
Wed, 4 Jan 2023 06:50:38 +0000 (14:50 +0800)
commit414bfe05ff3c9fbca5767116348a4de1d7b95841
tree061002f2057bd33c1cfe36950de3cbe4000a8275
parent93ac99b52a760acbc5b8acd45730588ec5531cbb
CommitGraph: teach ObjectReader to get commit-graph

FileRepository's ObjectReader#getCommitGraph will return commit-graph
when it exists and core.commitGraph is true.

DfsRepository is not supported currently.

Change-Id: I992d43d104cf542797e6949470e95e56de025107
Signed-off-by: kylezhao <kylezhao@tencent.com>
org.eclipse.jgit.test/tst/org/eclipse/jgit/internal/storage/file/ObjectDirectoryTest.java
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/ObjectDirectory.java
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/WindowCursor.java
org.eclipse.jgit/src/org/eclipse/jgit/lib/ObjectReader.java