public interface GitFetchBuilder extends GitCommandBuilderSupport<GitFetchBuilder>
command for running
git fetch.ENV_AUTHOR_DATE, ENV_AUTHOR_EMAIL, ENV_AUTHOR_NAME, ENV_COMMITTER_DATE, ENV_COMMITTER_EMAIL, ENV_COMMITTER_NAME| Modifier and Type | Method and Description |
|---|---|
GitFetchBuilder |
clearRefspecs()
Clears any
refspecs which have been added, allowing the same builder to be reused
when constructing multiple fetches for different refs. |
GitFetchBuilder |
errorHandler(com.atlassian.bitbucket.scm.CommandErrorHandler value)
|
GitFetchBuilder |
force(boolean value) |
GitFetchBuilder |
progress(boolean value) |
GitFetchBuilder |
prune(boolean value)
Specifies whether to supply
--prune to prune local branches and tags where the upstream branch
or tag has been deleted. |
GitFetchBuilder |
quiet(boolean value) |
GitFetchBuilder |
refspec(String value) |
GitFetchBuilder |
refspecs(Iterable<String> values) |
GitFetchBuilder |
refspecs(String value,
String... values) |
GitFetchBuilder |
repository(File value)
Deprecated.
in 6.4 for removal in 7.0. Use
repository(Path) or repository(Repository) instead. |
GitFetchBuilder |
repository(Path value) |
GitFetchBuilder |
repository(com.atlassian.bitbucket.repository.Repository value)
Specifies which upstream repository to fetch from.
|
GitFetchBuilder |
repository(String value) |
GitFetchBuilder |
tags(GitFetchTagMode value)
Specifies
--tags or --no-tags, to control whether git fetch fetches tags, and which
tags it fetches. |
alternate, alternates, alternates, author, author, author, build, committer, committer, committer, withConfiguration, withConfiguration, withConfiguration, withConfiguration@Nonnull GitFetchBuilder clearRefspecs()
refspecs which have been added, allowing the same builder to be reused
when constructing multiple fetches for different refs.this@Nonnull GitFetchBuilder errorHandler(@Nonnull com.atlassian.bitbucket.scm.CommandErrorHandler value)
error handler to receive stderr output when the
built command is run.
git fetch outputs the refs that are updated to stderr, not stdout, so in order
to parse the refs that change callers must register an error handler, not an output handler.
value - the handler to receive stderr outputthis@Nonnull GitFetchBuilder force(boolean value)
@Nonnull GitFetchBuilder progress(boolean value)
@Nonnull GitFetchBuilder prune(boolean value)
--prune to prune local branches and tags where the upstream branch
or tag has been deleted.value - true if local refs which do not exist upstream should be pruned; otherwise false
to leave such refs in placethis@Nonnull GitFetchBuilder quiet(boolean value)
@Nonnull GitFetchBuilder refspec(String value)
@Nonnull GitFetchBuilder refspecs(Iterable<String> values)
@Nonnull GitFetchBuilder refspecs(String value, String... values)
@Deprecated @Nonnull GitFetchBuilder repository(File value)
repository(Path) or repository(Repository) instead.value - the directory of the upstream repository to fetch fromthis@Nonnull GitFetchBuilder repository(Path value)
value - the directory of the upstream repository to fetch fromthis@Nonnull GitFetchBuilder repository(com.atlassian.bitbucket.repository.Repository value)
value - the repository to fetch fromthis@Nonnull GitFetchBuilder repository(String value)
@Nonnull GitFetchBuilder tags(@Nonnull GitFetchTagMode value)
--tags or --no-tags, to control whether git fetch fetches tags, and which
tags it fetches.value - the tag mode for the commandthisCopyright © 2019 Atlassian. All rights reserved.