Top Description Fields Constructors Methods
org.eclipse.jgit.lib

public final Class GitmoduleEntry

extends Object
Class Inheritance

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

Modifier and TypeField and Description
private final AnyObjectId
private final AnyObjectId

Constructor Summary

AccessConstructor and Description
public
GitmoduleEntry(AnyObjectId
tree id containing a .gitmodules entry
treeId
,
AnyObjectId
id of the blob of the .gitmodules file
blobId
)

A record of (tree, blob) for a .gitmodule file in a pack

Method Summary

Modifier and TypeMethod and Description
public AnyObjectId

Returns:

Id of a .gitmodules file found in the pack
getBlobId
()

Get Id of a .gitmodules file found in the pack

public AnyObjectId

Returns:

Id of a tree object where the .gitmodules file was found
getTreeId
()

Get Id of a tree object where the .gitmodules file was found

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

blobIdback to summary
private final AnyObjectId blobId
treeIdback to summary
private final AnyObjectId treeId

Constructor Detail

GitmoduleEntryback to summary
public GitmoduleEntry(AnyObjectId treeId, AnyObjectId blobId)

A record of (tree, blob) for a .gitmodule file in a pack

Parameters
treeId:AnyObjectId

tree id containing a .gitmodules entry

blobId:AnyObjectId

id of the blob of the .gitmodules file

Method Detail

getBlobIdback to summary
public AnyObjectId getBlobId()

Get Id of a .gitmodules file found in the pack

Returns:AnyObjectId

Id of a .gitmodules file found in the pack

getTreeIdback to summary
public AnyObjectId getTreeId()

Get Id of a tree object where the .gitmodules file was found

Returns:AnyObjectId

Id of a tree object where the .gitmodules file was found