Package org.jclouds.scriptbuilder.domain
Class GitRepoAndRef
- java.lang.Object
-
- org.jclouds.scriptbuilder.domain.GitRepoAndRef
-
public class GitRepoAndRef extends Object
Description of git coordinates to checkout.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GitRepoAndRef.Builder
-
Constructor Summary
Constructors Modifier Constructor Description protected
GitRepoAndRef(URI repository, com.google.common.base.Optional<String> branch, com.google.common.base.Optional<String> tag)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GitRepoAndRef.Builder
builder()
boolean
equals(Object obj)
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.URI
getRepository()
The (possibly remote) repository to clone from.com.google.common.base.Optional<String>
getTag()
checkout the following tag on the branchint
hashCode()
GitRepoAndRef.Builder
toBuilder()
String
toString()
-
-
-
Method Detail
-
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
-
-