Package pl.project13.core
Class NativeGitProvider
java.lang.Object
pl.project13.core.GitDataProvider
pl.project13.core.NativeGitProvider
- All Implemented Interfaces:
GitProvider
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classstatic classstatic interfaceNested classes/interfaces inherited from class pl.project13.core.GitDataProvider
GitDataProvider.SupplierEx<T> -
Field Summary
Fields inherited from class pl.project13.core.GitDataProvider
abbrevLength, commitIdGenerationMode, dateFormat, dateFormatTimeZone, evaluateOnCommit, excludeProperties, gitDescribe, includeOnlyProperties, log, offline, pathFilter, prefixDot, useBranchNameFromBuildEnvironment -
Method Summary
Modifier and TypeMethodDescriptionvoidgetTag()getTags()voidinit()booleanisDirty()static @NonNull NativeGitProvideron(@NonNull File dotGitDirectory, long nativeGitTimeoutInMs, @NonNull LogInterface log) voidvoidsetEvaluateOnCommit(String evaluateOnCommit) Methods inherited from class pl.project13.core.GitDataProvider
determineBranchName, getSimpleDateFormatWithTimeZone, loadGitData, loadShortDescribe, maybePut, memoize, setAbbrevLength, setCommitIdGenerationMode, setDateFormat, setDateFormatTimeZone, setExcludeProperties, setGitDescribe, setIncludeOnlyProperties, setOffline, setPathFilter, setPrefixDot, setUseBranchNameFromBuildEnvironment, stripCredentialsFromOriginUrl
-
Method Details
-
on
public static @NonNull NativeGitProvider on(@NonNull File dotGitDirectory, long nativeGitTimeoutInMs, @NonNull LogInterface log) -
init
- Throws:
GitCommitIdExecutionException
-
getBuildAuthorName
- Throws:
GitCommitIdExecutionException
-
getBuildAuthorEmail
- Throws:
GitCommitIdExecutionException
-
prepareGitToExtractMoreDetailedRepoInformation
- Throws:
GitCommitIdExecutionException
-
getBranchName
- Throws:
GitCommitIdExecutionException
-
getGitDescribe
- Throws:
GitCommitIdExecutionException
-
getCommitId
- Throws:
GitCommitIdExecutionException
-
getAbbrevCommitId
- Throws:
GitCommitIdExecutionException
-
isDirty
- Throws:
GitCommitIdExecutionException
-
getCommitAuthorName
- Throws:
GitCommitIdExecutionException
-
getCommitAuthorEmail
- Throws:
GitCommitIdExecutionException
-
getCommitMessageFull
- Throws:
GitCommitIdExecutionException
-
getCommitMessageShort
- Throws:
GitCommitIdExecutionException
-
getCommitTime
- Throws:
GitCommitIdExecutionException
-
getCommitAuthorTime
- Throws:
GitCommitIdExecutionException
-
getCommitCommitterTime
- Throws:
GitCommitIdExecutionException
-
getTags
- Throws:
GitCommitIdExecutionException
-
getTag
- Throws:
GitCommitIdExecutionException
-
getRemoteOriginUrl
- Throws:
GitCommitIdExecutionException
-
getClosestTagName
- Throws:
GitCommitIdExecutionException
-
getClosestTagCommitCount
- Throws:
GitCommitIdExecutionException
-
getTotalCommitCount
- Throws:
GitCommitIdExecutionException
-
finalCleanUp
- Throws:
GitCommitIdExecutionException
-
getAheadBehind
- Throws:
GitCommitIdExecutionException
-
setEvaluateOnCommit
-