Package com.xenoterracide.gradle.git
Class GitRemoteForGradle
java.lang.Object
com.xenoterracide.gradle.git.GitRemoteForGradle
- All Implemented Interfaces:
GitRemote
Delegates to
GitRemote but uses Gradle's Provider for lazy evaluation.-
Method Details
-
getName
Gets the name of the remote.- Returns:
- the name
-
getHeadBranch
Gets the head branch of the remote.- Returns:
- the head branch
-
headBranchRefName
Description copied from interface:GitRemoteGets the remote HEAD branch ref name. This will look something likerefs/remotes/origin/main.- Specified by:
headBranchRefNamein interfaceGitRemote- Returns:
- HEAD branch ref name
-
name
Description copied from interface:GitRemoteGets the remote name; a common example is origin.
-