Interface GitMetadata
- All Known Implementing Classes:
GitMetadataImpl
public interface GitMetadata
Git Metadata interface to allow easy test stubbing with records.
-
Method Summary
Modifier and TypeMethodDescription@Nullable Stringbranch()Gets the current branch.@Nullable Stringcommit()Gets the current commit.longdistance()Gets commit distance.remotes()Gets the remotes.status()Gets status.@Nullable Stringtag()Gets latest tag.@Nullable StringShort version of a commit SHA.
-
Method Details
-
uniqueShort
@Nullable String uniqueShort()Short version of a commit SHA.- Returns:
- SHA. Length starts at 8 but may grow as repository does
-
tag
-
distance
long distance()Gets commit distance.- Returns:
- the commit distance
-
status
-
branch
-
commit
-
remotes
-