Package org.eclipse.jgit.lib
Class GitmoduleEntry
- java.lang.Object
-
- org.eclipse.jgit.lib.GitmoduleEntry
-
public final class GitmoduleEntry extends java.lang.Object
A .gitmodules file found in the pack. Store the blob of the file itself (e.g. to access its contents) and the tree where it was found (e.g. to check if it is in the root)- Since:
- 4.7.5
-
-
Field Summary
Fields Modifier and Type Field Description private AnyObjectId
blobId
private AnyObjectId
treeId
-
Constructor Summary
Constructors Constructor Description GitmoduleEntry(AnyObjectId treeId, AnyObjectId blobId)
A record of (tree, blob) for a .gitmodule file in a pack
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AnyObjectId
getBlobId()
AnyObjectId
getTreeId()
-
-
-
Field Detail
-
treeId
private final AnyObjectId treeId
-
blobId
private final AnyObjectId blobId
-
-
Constructor Detail
-
GitmoduleEntry
public GitmoduleEntry(AnyObjectId treeId, AnyObjectId blobId)
A record of (tree, blob) for a .gitmodule file in a pack- Parameters:
treeId
- tree id containing a .gitmodules entryblobId
- id of the blob of the .gitmodules file
-
-
Method Detail
-
getBlobId
public AnyObjectId getBlobId()
- Returns:
- Id of a .gitmodules file found in the pack
-
getTreeId
public AnyObjectId getTreeId()
- Returns:
- Id of a tree object where the .gitmodules file was found
-
-