Package com.xenoterracide.gradle.git
Interface GitRemote
- All Known Implementing Classes:
GitRemoteForGradle
public interface GitRemote
Git Remote information.
-
Method Details
-
headBranch
Gets the remote HEAD branch. This removes therefs/heads/prefix.- Returns:
- HEAD branch
-
headBranchRefName
@Nullable String headBranchRefName()Gets the remote HEAD branch ref name. This will look something likerefs/remotes/origin/main.- Returns:
- HEAD branch ref name
-
name
String name()Gets the remote name; a common example is origin.- Returns:
- remote name
-