Class GitRepoAndRef


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

      • 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 Detail

      • GitRepoAndRef

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

      • 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