Interface IGitBoundProjectState
public interface IGitBoundProjectState
Project state in terms of associated Git repository.
-
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.jgit.lib.ObjectId
getHead()
Gets the associated repository head.Set<org.eclipse.jgit.lib.Ref>
getRefs()
Gets a set of refs pointing to the associated repository head.boolean
Checks weather the associated repository state is consistent, i.e. the repository is not bare and no Git operation is waiting for user action.
-
Method Details
-
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:
true
if the repository state is consistent andfalse
otherwise
-