public class GitRepoAndRef extends Object
Modifier and Type | Class and Description |
---|---|
static class |
GitRepoAndRef.Builder |
Modifier and Type | Field and Description |
---|---|
protected com.google.common.base.Optional<String> |
branch |
protected URI |
repository |
protected com.google.common.base.Optional<String> |
tag |
Modifier | Constructor and Description |
---|---|
protected |
GitRepoAndRef(URI repository,
com.google.common.base.Optional<String> branch,
com.google.common.base.Optional<String> tag) |
Modifier and Type | Method and 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 branch
|
int |
hashCode() |
GitRepoAndRef.Builder |
toBuilder() |
String |
toString() |
protected final URI repository
protected final com.google.common.base.Optional<String> branch
protected final com.google.common.base.Optional<String> tag
public static GitRepoAndRef.Builder builder()
public GitRepoAndRef.Builder toBuilder()
public URI getRepository()
public com.google.common.base.Optional<String> getBranch()
public com.google.common.base.Optional<String> getTag()
Copyright © 2009-2013 jclouds. All Rights Reserved.