Package org.eclipse.jgit.submodule
Class SubmoduleStatus
- java.lang.Object
-
- org.eclipse.jgit.submodule.SubmoduleStatus
-
public class SubmoduleStatus extends Object
Status class containing the type, path, and commit id of the submodule.
-
-
Constructor Summary
Constructors Constructor Description SubmoduleStatus(SubmoduleStatusType type, String path, ObjectId indexId)
Create submodule statusSubmoduleStatus(SubmoduleStatusType type, 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 idString
getPath()
Get submodule pathSubmoduleStatusType
getType()
Get type
-
-
-
Constructor Detail
-
SubmoduleStatus
public SubmoduleStatus(SubmoduleStatusType type, String path, ObjectId indexId)
Create submodule status- Parameters:
type
- aSubmoduleStatusType
object.path
- submodule pathindexId
- anObjectId
object.
-
SubmoduleStatus
public SubmoduleStatus(SubmoduleStatusType type, 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 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
-
-