Package pl.project13.core
Class AheadBehind
java.lang.Object
pl.project13.core.AheadBehind
A local git repository can either be "ahead", or "behind" in the number of commits
relative to the remote repository. This class tracks the amount of commits the local git repository
is "behind", or "ahead" relative to it's remote.
:warning: You must set the
offline-setting of the plugin to false when you want to ensure
that the properties generated are truly up-to-date. Otherwise the local state of the git repository is used
which might be out-of-date.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final AheadBehindIndication that we could not find a remote repository to calculate a "behind", or "ahead" relation. -
Method Summary
-
Field Details
-
NO_REMOTE
Indication that we could not find a remote repository to calculate a "behind", or "ahead" relation.
-
-
Method Details
-
of
Constructor for a "AheadBehind"-object.- Parameters:
ahead- Number of commits the local repository is "ahead" in relation to it's remote.behind- Number of commits the local repository is "behind" in relation to it's remote.- Returns:
- a "AheadBehind"-object.
-
of
Constructor for a "AheadBehind"-object.- Parameters:
ahead- Number of commits the local repository is "ahead" in relation to it's remote.behind- Number of commits the local repository is "behind" in relation to it's remote.- Returns:
- a "AheadBehind"-object.
-
ahead
- Returns:
- Number of commits the local repository is "ahead" in relation to it's remote.
-
behind
- Returns:
- Number of commits the local repository is "behind" in relation to it's remote.
-
hashCode
public int hashCode() -
equals
-