Interface IGitBoundProjectState
-
public interface IGitBoundProjectStateProject state in terms of associated Git repository.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.eclipse.jgit.lib.ObjectIdgetHead()Gets the associated repository head.Set<org.eclipse.jgit.lib.Ref>getRefs()Gets a set of refs pointing to the associated repository head.booleanisConsistent()Checks weather the associated repository state is consistent, i.e.
-
-
-
Method Detail
-
getHead
org.eclipse.jgit.lib.ObjectId getHead()
Gets the associated repository head.- Returns:
- the head
ObjectId, nevernull
-
getRefs
Set<org.eclipse.jgit.lib.Ref> getRefs()
Gets a set of refs pointing to the associated repository head.- Returns:
- the set of refs, never
null
-
isConsistent
boolean isConsistent()
Checks weather the associated repository state is consistent, i.e. the repository is not bare and no Git operation is waiting for user action.- Returns:
trueif the repository state is consistent andfalseotherwise
-
-