]> source.dussan.org Git - jgit.git/commit
CommitGraph: implement commit-graph writer 32/182832/32
authorkylezhao <kylezhao@tencent.com>
Tue, 6 Jul 2021 12:20:14 +0000 (20:20 +0800)
committerkylezhao <kylezhao@tencent.com>
Tue, 6 Dec 2022 12:34:46 +0000 (20:34 +0800)
commitcf70e7cbe4fffabf1caebbf4b8705188957cfa6a
treef16910855c48cdd043728a67b386aa7dd4dfafdc
parent1d5a6c77a6b575ae7e8d1d9cf8435e36eef6125d
CommitGraph: implement commit-graph writer

Teach JGit to write a commit-graph formatted file by walking commit
graph from specified commit objects.

See: https://git-scm.com/docs/commit-graph-format/2.21.0

Bug: 574368
Change-Id: I34f9f28f8729080c275f86215ebf30b2d05af41d
Signed-off-by: kylezhao <kylezhao@tencent.com>
org.eclipse.jgit.test/tst/org/eclipse/jgit/internal/storage/commitgraph/CommitGraphWriterTest.java [new file with mode: 0644]
org.eclipse.jgit.test/tst/org/eclipse/jgit/internal/storage/commitgraph/GraphCommitsTest.java [new file with mode: 0644]
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/commitgraph/CommitGraphConstants.java [new file with mode: 0644]
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/commitgraph/CommitGraphWriter.java [new file with mode: 0644]
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/commitgraph/GraphCommits.java [new file with mode: 0644]
org.eclipse.jgit/src/org/eclipse/jgit/lib/ConfigConstants.java
org.eclipse.jgit/src/org/eclipse/jgit/lib/Constants.java