diff options
author | kylezhao <kylezhao@tencent.com> | 2021-07-08 20:19:13 +0800 |
---|---|---|
committer | Ivan Frade <ifrade@google.com> | 2022-12-16 06:57:06 -0500 |
commit | 7b0f633b675863c30c2cd4f192e49137a3950e50 (patch) | |
tree | aeb16060239b4475282147e85d1df282a10bb853 /org.eclipse.jgit/resources | |
parent | 514ebfdc7e81cabeb126e591ddf644730af1972f (diff) | |
download | jgit-7b0f633b675863c30c2cd4f192e49137a3950e50.tar.gz jgit-7b0f633b675863c30c2cd4f192e49137a3950e50.zip |
CommitGraph: implement commit-graph read
Git introduced a new file storing the topology and some metadata of
the commits in the repo (commitGraph). With this data, git can browse
commit history without parsing the pack, speeding up e.g.
reachability checks.
This change teaches JGit to read commit-graph-format file, following
the upstream format([1]).
JGit can read a commit-graph file from a buffered stream, which means
that we can provide this feature for both FileRepository and
DfsRepository.
[1] https://git-scm.com/docs/commit-graph-format/2.21.0
Bug: 574368
Change-Id: Ib5c0d6678cb242870a0f5841bd413ad3885e95f6
Signed-off-by: kylezhao <kylezhao@tencent.com>
Diffstat (limited to 'org.eclipse.jgit/resources')
-rw-r--r-- | org.eclipse.jgit/resources/org/eclipse/jgit/internal/JGitText.properties | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/org.eclipse.jgit/resources/org/eclipse/jgit/internal/JGitText.properties b/org.eclipse.jgit/resources/org/eclipse/jgit/internal/JGitText.properties index 9b9e6d5a2c..9c918ad410 100644 --- a/org.eclipse.jgit/resources/org/eclipse/jgit/internal/JGitText.properties +++ b/org.eclipse.jgit/resources/org/eclipse/jgit/internal/JGitText.properties @@ -143,6 +143,10 @@ collisionOn=Collision on {0} commandClosedStderrButDidntExit=Command {0} closed stderr stream but didn''t exit within timeout {1} seconds commandRejectedByHook=Rejected by "{0}" hook.\n{1} commandWasCalledInTheWrongState=Command {0} was called in the wrong state +commitGraphChunkNeeded=commit-graph 0x{0} chunk has not been loaded +commitGraphChunkRepeated=commit-graph chunk id 0x{0} appears multiple times +commitGraphChunkUnknown=unknown commit-graph chunk: 0x{0} +commitGraphFileIsTooLargeForJgit=commit-graph file is too large for jgit commitGraphWritingCancelled=commit-graph writing was canceled commitMessageNotSpecified=commit message not specified commitOnRepoWithoutHEADCurrentlyNotSupported=Commit on repo without HEAD currently not supported @@ -385,6 +389,7 @@ invalidDepth=Invalid depth: {0} invalidEncoding=Invalid encoding from git config i18n.commitEncoding: {0} invalidEncryption=Invalid encryption invalidExpandWildcard=ExpandFromSource on a refspec that can have mismatched wildcards does not make sense. +invalidExtraEdgeListPosition=Invalid position in Extra Edge List chunk: {0} invalidFilter=Invalid filter: {0} invalidGitdirRef = Invalid .git reference in file ''{0}'' invalidGitModules=Invalid .gitmodules file @@ -515,6 +520,7 @@ noSuchRefKnown=no such ref: {0} noSuchSubmodule=no such submodule {0} notABoolean=Not a boolean: {0} notABundle=not a bundle +notACommitGraph=not a commit-graph notADIRCFile=Not a DIRC file. notAGitDirectory=not a git directory notAPACKFile=Not a PACK file. @@ -797,6 +803,7 @@ unlockLockFileFailed=Unlocking LockFile ''{0}'' failed unmergedPath=Unmerged path: {0} unmergedPaths=Repository contains unmerged paths unpackException=Exception while parsing pack stream +unreadableCommitGraph=Unreadable commit-graph: {0} unreadablePackIndex=Unreadable pack index: {0} unrecognizedPackExtension=Unrecognized pack extension: {0} unrecognizedRef=Unrecognized ref: {0} @@ -804,6 +811,7 @@ unsetMark=Mark not set unsupportedAlternates=Alternates not supported unsupportedArchiveFormat=Unknown archive format ''{0}'' unsupportedCommand0=unsupported command 0 +unsupportedCommitGraphVersion=Unsupported commit-graph version: {0} unsupportedEncryptionAlgorithm=Unsupported encryption algorithm: {0} unsupportedEncryptionVersion=Unsupported encryption version: {0} unsupportedGC=Unsupported garbage collector for repository type: {0} |