@NotThreadSafe public interface GitScmCommandBuilder extends GitCommandBuilderSupport<GitScmCommandBuilder>, com.atlassian.bitbucket.scm.ScmCommandBuilder<GitScmCommandBuilder>
ScmCommandBuilder
with git-specific type-safe builders, to simplify using well-known
commands.
Type-safe builders are not provided for all of the commands supported by the git
binary, and the builders
that are provided may not expose properties for all of the different arguments or argument combinations the command
offers. Free-form and type-safe builder semantics may not be mixed. If a type-safe builder does not exist for
the desired command, or it does not support the desired arguments, the free-form builder must be used instead.
For type-safe builders provided, the git
command associated with the builder is used to name the interface
and the method. Note that some commands accept arguments which, when provided, enable the use of other arguments, or
trigger the command to produce significantly different output. For such commands, like blame
and
cat-file
, an interim interface is returned to allow the caller to choose the "mode" the command
will run in. Once a mode has been chosen, a builder will be returned exposing arguments supported for that mode.
ENV_AUTHOR_DATE, ENV_AUTHOR_EMAIL, ENV_AUTHOR_NAME, ENV_COMMITTER_DATE, ENV_COMMITTER_EMAIL, ENV_COMMITTER_NAME
alternate, alternates, alternates, author, author, author, committer, committer, committer, withConfiguration, withConfiguration, withConfiguration, withConfiguration
@Nonnull GitAddBuilder add()
@Nonnull GitArchiveBuilder archive()
git archive
command@Nonnull <T> GitCommand<T> build(@Nonnull com.atlassian.bitbucket.scm.CommandOutputHandler<T> outputHandler)
GitCommandBuilderSupport
the parent
interface
, mandates that built commands be GitCommands
, which support both synchronous
and asynchronous execution, rather than simple Commands
.build
in interface com.atlassian.bitbucket.scm.CommandBuilderSupport<GitScmCommandBuilder>
build
in interface GitCommandBuilderSupport<GitScmCommandBuilder>
build
in interface com.atlassian.bitbucket.scm.ScmCommandBuilder<GitScmCommandBuilder>
T
- The type of object, or object graph, which the output handler will process from the command's outputoutputHandler
- the handler to receive and process output from the command as it executes@Nonnull GitCatFile catFile()
@Nonnull GitCheckRefFormat checkRefFormat()
git check-ref-format
command@Nonnull GitCommitBuilder commit()
@Nonnull GitDiffBuilder diff()
@Nonnull GitDiffTreeBuilder diffTree()
@Nonnull GitFetchBuilder fetch()
@Nonnull GitForEachRefBuilder forEachRef()
@Nonnull GitFormatPatchBuilder formatPatch()
git format-patch
command@Nonnull GitGcBuilder gc()
@Nonnull GitInitBuilder init()
@Nonnull GitLogBuilder log()
@Nonnull GitLsFilesBuilder lsFiles()
@Nonnull GitLsTreeBuilder lsTree()
@Nonnull GitMergeBase mergeBase()
@Nonnull GitPackObjectsBuilder packObjects()
@Nonnull GitPrunePackedBuilder prunePacked()
@Nonnull GitPushBuilder push()
@Nonnull GitResetBuilder reset()
@Nonnull GitRevListBuilder revList()
@Nonnull GitRmBuilder rm()
@Nonnull GitStatusBuilder status()
@Nonnull GitSymbolicRef symbolicRef()
@Nonnull GitUpdateRef updateRef()
Copyright © 2019 Atlassian. All rights reserved.