Package org.eclipse.jgit.submodule
Class SubmoduleStatus
- java.lang.Object
-
- org.eclipse.jgit.submodule.SubmoduleStatus
-
public class SubmoduleStatus extends java.lang.Object
Status class containing the type, path, and commit id of the submodule.
-
-
Constructor Summary
Constructors Constructor Description SubmoduleStatus(SubmoduleStatusType type, java.lang.String path, ObjectId indexId)
Create submodule statusSubmoduleStatus(SubmoduleStatusType type, java.lang.String path, ObjectId indexId, ObjectId headId)
Create submodule status
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectId
getHeadId()
Get HEAD object idObjectId
getIndexId()
Get index object idjava.lang.String
getPath()
Get submodule pathSubmoduleStatusType
getType()
Get type
-
-
-
Field Detail
-
type
private final SubmoduleStatusType type
-
path
private final java.lang.String path
-
indexId
private final ObjectId indexId
-
headId
private final ObjectId headId
-
-
Constructor Detail
-
SubmoduleStatus
public SubmoduleStatus(SubmoduleStatusType type, java.lang.String path, ObjectId indexId)
Create submodule status- Parameters:
type
- aSubmoduleStatusType
object.path
- submodule pathindexId
- anObjectId
object.
-
SubmoduleStatus
public SubmoduleStatus(SubmoduleStatusType type, java.lang.String path, ObjectId indexId, ObjectId headId)
Create submodule status- Parameters:
type
- aSubmoduleStatusType
object.path
- submodule pathindexId
- index idheadId
- head id
-
-
Method Detail
-
getType
public SubmoduleStatusType getType()
Get type- Returns:
- type
-
getPath
public java.lang.String getPath()
Get submodule path- Returns:
- path submodule path
-
getIndexId
public ObjectId getIndexId()
Get index object id- Returns:
- index object id
-
getHeadId
public ObjectId getHeadId()
Get HEAD object id- Returns:
- HEAD object id
-
-