Package net.kyori.indra.git
Class QueryBranch.Name
java.lang.Object
- All Implemented Interfaces:
org.gradle.api.provider.ValueSource<String,RepositoryValueSource.Parameters>
- Enclosing class:
- QueryBranch<V>
Queries the
name of the current branch ref.-
Nested Class Summary
Nested classes/interfaces inherited from class net.kyori.indra.git.QueryBranch
QueryBranch.NameNested classes/interfaces inherited from class net.kyori.indra.git.MappedRepositoryValueSource
MappedRepositoryValueSource.Parameterless<I,V> Nested classes/interfaces inherited from class net.kyori.indra.git.RepositoryValueSource
RepositoryValueSource.Parameters -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class net.kyori.indra.git.QueryBranch
getRawValueMethods inherited from class net.kyori.indra.git.MappedRepositoryValueSource
obtainMethods inherited from class net.kyori.indra.git.RepositoryValueSource
obtainMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.gradle.api.provider.ValueSource
getParameters
-
Constructor Details
-
Name
public Name()
-
-
Method Details
-
mapValue
@NotNull protected @NotNull String mapValue(@NotNull @NotNull org.eclipse.jgit.api.Git git, @NotNull @NotNull org.eclipse.jgit.lib.Ref ref) Description copied from class:MappedRepositoryValueSourceMaps the raw value to the final value type.- Specified by:
mapValuein classMappedRepositoryValueSource<org.eclipse.jgit.lib.Ref,String, RepositoryValueSource.Parameters> - Parameters:
git- the git repositoryref- the raw value- Returns:
- the mapped value, or
null
-