Package org.jclouds.scriptbuilder.domain
Class GitRepoAndRef
java.lang.Object
org.jclouds.scriptbuilder.domain.GitRepoAndRef
Description of git coordinates to checkout.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
GitRepoAndRef
(URI repository, com.google.common.base.Optional<String> branch, com.google.common.base.Optional<String> tag) -
Method Summary
Modifier and TypeMethodDescriptionstatic GitRepoAndRef.Builder
builder()
boolean
com.google.common.base.Optional
<String> Instead of pointing the newly created HEAD to the branch pointed to by the cloned repository's HEAD, point to this branch instead.The (possibly remote) repository to clone from.com.google.common.base.Optional
<String> getTag()
checkout the following tag on the branchint
hashCode()
toString()
-
Field Details
-
repository
-
branch
-
tag
-
-
Constructor Details
-
GitRepoAndRef
-
-
Method Details
-
builder
-
toBuilder
-
getRepository
The (possibly remote) repository to clone from. -
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
checkout the following tag on the branch -
hashCode
public int hashCode() -
equals
-
toString
-