Class GitRemoteForGradle

java.lang.Object
com.xenoterracide.gradle.git.GitRemoteForGradle
All Implemented Interfaces:
GitRemote

public class GitRemoteForGradle extends Object implements GitRemote
Delegates to GitRemote but uses Gradle's Provider for lazy evaluation.
  • Method Details

    • getName

      public String getName()
      Gets the name of the remote.
      Returns:
      the name
    • getHeadBranch

      public org.gradle.api.provider.Provider<String> getHeadBranch()
      Gets the head branch of the remote.
      Returns:
      the head branch
    • headBranchRefName

      public @Nullable String headBranchRefName()
      Description copied from interface: GitRemote
      Gets the remote HEAD branch ref name. This will look something like refs/remotes/origin/main.
      Specified by:
      headBranchRefName in interface GitRemote
      Returns:
      HEAD branch ref name
    • name

      public String name()
      Description copied from interface: GitRemote
      Gets the remote name; a common example is origin.
      Specified by:
      name in interface GitRemote
      Returns:
      remote name