Class GitRepoAndRef

java.lang.Object
org.jclouds.scriptbuilder.domain.GitRepoAndRef

public class GitRepoAndRef extends Object
Description of git coordinates to checkout.
  • Field Details

    • repository

      protected final URI repository
    • branch

      protected final com.google.common.base.Optional<String> branch
    • tag

      protected final com.google.common.base.Optional<String> tag
  • Constructor Details

    • GitRepoAndRef

      protected GitRepoAndRef(URI repository, com.google.common.base.Optional<String> branch, com.google.common.base.Optional<String> tag)
  • Method Details

    • builder

      public static GitRepoAndRef.Builder builder()
    • toBuilder

      public GitRepoAndRef.Builder toBuilder()
    • getRepository

      public URI getRepository()
      The (possibly remote) repository to clone from.
    • getBranch

      public com.google.common.base.Optional<String> getBranch()
      Instead of pointing the newly created HEAD to the branch pointed to by the cloned repository's HEAD, point to this branch instead. In a non-bare repository, this is the branch that will be checked out.
    • getTag

      public com.google.common.base.Optional<String> getTag()
      checkout the following tag on the branch
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object