Interface GitCommandFactory
- All Superinterfaces:
com.atlassian.bitbucket.scm.PluginCommandFactory
public interface GitCommandFactory
extends com.atlassian.bitbucket.scm.PluginCommandFactory
Overrides methods from the standard
PluginCommandFactory interface and returns GitCommand instances
instead of simple Command or AsyncCommand instances. This allows commands created by this factory to
be used synchronously or asynchronously at the caller's discretion, rather than fixing execution to one approach or
the other.
This interface does not add any commands to the standard interface. It only covariantly adjusts their return types.
-
Method Summary
Modifier and TypeMethodDescriptionGitCommand<com.atlassian.bitbucket.util.Page<com.atlassian.bitbucket.content.Blame>>blame(com.atlassian.bitbucket.repository.Repository repository, com.atlassian.bitbucket.scm.BlameCommandParameters parameters, com.atlassian.bitbucket.util.PageRequest pageRequest) branches(com.atlassian.bitbucket.repository.Repository repository, com.atlassian.bitbucket.scm.BranchesCommandParameters parameters, com.atlassian.bitbucket.repository.BranchCallback callback) GitCommand<com.atlassian.bitbucket.util.Page<com.atlassian.bitbucket.repository.Branch>>branches(com.atlassian.bitbucket.repository.Repository repository, com.atlassian.bitbucket.scm.BranchesCommandParameters parameters, com.atlassian.bitbucket.util.PageRequest pageRequest) changes(com.atlassian.bitbucket.repository.Repository repository, com.atlassian.bitbucket.scm.ChangesCommandParameters parameters, com.atlassian.bitbucket.content.ChangeCallback callback) GitCommand<com.atlassian.bitbucket.util.Page<com.atlassian.bitbucket.content.Change>>changes(com.atlassian.bitbucket.repository.Repository repository, com.atlassian.bitbucket.scm.ChangesCommandParameters parameters, com.atlassian.bitbucket.util.PageRequest pageRequest) GitCommand<com.atlassian.bitbucket.util.Page<com.atlassian.bitbucket.commit.Changeset>>changesets(com.atlassian.bitbucket.repository.Repository repository, com.atlassian.bitbucket.scm.ChangesetsCommandParameters parameters, com.atlassian.bitbucket.util.PageRequest pageRequest) GitCommand<com.atlassian.bitbucket.commit.Commit>commit(com.atlassian.bitbucket.repository.Repository repository, com.atlassian.bitbucket.scm.CommitCommandParameters parameters) commits(com.atlassian.bitbucket.repository.Repository repository, com.atlassian.bitbucket.scm.CommitsCommandParameters parameters, com.atlassian.bitbucket.commit.CommitCallback callback) GitCommand<com.atlassian.bitbucket.util.Page<com.atlassian.bitbucket.commit.Commit>>commits(com.atlassian.bitbucket.repository.Repository repository, com.atlassian.bitbucket.scm.CommitsCommandParameters parameters, com.atlassian.bitbucket.util.PageRequest pageRequest) GitCommand<com.atlassian.bitbucket.commit.MinimalCommit>commonAncestor(com.atlassian.bitbucket.repository.Repository repository, com.atlassian.bitbucket.scm.CommonAncestorCommandParameters parameters) create(com.atlassian.bitbucket.repository.Repository repository, com.atlassian.bitbucket.scm.CreateCommandParameters parameters) GitCommand<com.atlassian.bitbucket.repository.Branch>defaultBranch(com.atlassian.bitbucket.repository.Repository repository) delete(com.atlassian.bitbucket.repository.Repository repository, com.atlassian.bitbucket.scm.DeleteCommandParameters parameters) diff(com.atlassian.bitbucket.repository.Repository repository, com.atlassian.bitbucket.scm.DiffCommandParameters parameters, com.atlassian.bitbucket.content.DiffContentCallback callback) diff(com.atlassian.bitbucket.repository.Repository repository, com.atlassian.bitbucket.scm.DiffCommandParameters parameters, com.atlassian.bitbucket.io.TypeAwareOutputSupplier outputSupplier) GitCommand<com.atlassian.bitbucket.content.DiffStatsSummary>diffStatsSummary(com.atlassian.bitbucket.repository.Repository repository, com.atlassian.bitbucket.scm.DiffStatsSummaryCommandParameters parameters) directory(com.atlassian.bitbucket.repository.Repository repository, com.atlassian.bitbucket.scm.DirectoryCommandParameters parameters, com.atlassian.bitbucket.content.ContentTreeCallback callback, com.atlassian.bitbucket.util.PageRequest pageRequest) file(com.atlassian.bitbucket.repository.Repository repository, com.atlassian.bitbucket.scm.FileCommandParameters parameters, com.atlassian.bitbucket.content.FileContentCallback callback, com.atlassian.bitbucket.util.PageRequest pageRequest) rawFile(com.atlassian.bitbucket.repository.Repository repository, com.atlassian.bitbucket.scm.RawFileCommandParameters parameters, com.atlassian.bitbucket.io.TypeAwareOutputSupplier outputSupplier) refs(com.atlassian.bitbucket.repository.Repository repository, com.atlassian.bitbucket.scm.RefsCommandParameters parameters, com.atlassian.bitbucket.repository.RefCallback callback) GitCommand<com.atlassian.bitbucket.scm.RepositorySize>repositorySize(com.atlassian.bitbucket.repository.Repository repository, com.atlassian.bitbucket.scm.RepositorySizeCommandParameters parameters) GitCommand<com.atlassian.bitbucket.repository.Ref>resolveRef(com.atlassian.bitbucket.repository.Repository repository, com.atlassian.bitbucket.scm.ResolveRefCommandParameters parameters) GitCommand<Map<String,com.atlassian.bitbucket.repository.Ref>> resolveRefs(com.atlassian.bitbucket.repository.Repository repository, com.atlassian.bitbucket.scm.ResolveRefsCommandParameters parameters) size(com.atlassian.bitbucket.repository.Repository repository, com.atlassian.bitbucket.scm.SizeCommandParameters parameters) tags(com.atlassian.bitbucket.repository.Repository repository, com.atlassian.bitbucket.scm.TagsCommandParameters parameters, com.atlassian.bitbucket.repository.TagCallback callback) GitCommand<com.atlassian.bitbucket.util.Page<com.atlassian.bitbucket.repository.Tag>>tags(com.atlassian.bitbucket.repository.Repository repository, com.atlassian.bitbucket.scm.TagsCommandParameters parameters, com.atlassian.bitbucket.util.PageRequest pageRequest) traverseCommits(com.atlassian.bitbucket.repository.Repository repository, com.atlassian.bitbucket.commit.graph.TraversalCallback callback) GitCommand<com.atlassian.bitbucket.content.ContentTreeNode.Type>type(com.atlassian.bitbucket.repository.Repository repository, com.atlassian.bitbucket.scm.TypeCommandParameters parameters) Methods inherited from interface com.atlassian.bitbucket.scm.PluginCommandFactory
resolveCommits
-
Method Details
-
blame
@Nonnull GitCommand<com.atlassian.bitbucket.util.Page<com.atlassian.bitbucket.content.Blame>> blame(@Nonnull com.atlassian.bitbucket.repository.Repository repository, @Nonnull com.atlassian.bitbucket.scm.BlameCommandParameters parameters, @Nonnull com.atlassian.bitbucket.util.PageRequest pageRequest) - Specified by:
blamein interfacecom.atlassian.bitbucket.scm.PluginCommandFactory
-
branches
@Nonnull GitCommand<Void> branches(@Nonnull com.atlassian.bitbucket.repository.Repository repository, @Nonnull com.atlassian.bitbucket.scm.BranchesCommandParameters parameters, @Nonnull com.atlassian.bitbucket.repository.BranchCallback callback) - Specified by:
branchesin interfacecom.atlassian.bitbucket.scm.PluginCommandFactory- Since:
- 4.6
-
branches
@Nonnull GitCommand<com.atlassian.bitbucket.util.Page<com.atlassian.bitbucket.repository.Branch>> branches(@Nonnull com.atlassian.bitbucket.repository.Repository repository, @Nonnull com.atlassian.bitbucket.scm.BranchesCommandParameters parameters, @Nonnull com.atlassian.bitbucket.util.PageRequest pageRequest) - Specified by:
branchesin interfacecom.atlassian.bitbucket.scm.PluginCommandFactory
-
changes
@Nonnull GitCommand<Void> changes(@Nonnull com.atlassian.bitbucket.repository.Repository repository, @Nonnull com.atlassian.bitbucket.scm.ChangesCommandParameters parameters, @Nonnull com.atlassian.bitbucket.content.ChangeCallback callback) - Specified by:
changesin interfacecom.atlassian.bitbucket.scm.PluginCommandFactory
-
changes
@Nonnull GitCommand<com.atlassian.bitbucket.util.Page<com.atlassian.bitbucket.content.Change>> changes(@Nonnull com.atlassian.bitbucket.repository.Repository repository, @Nonnull com.atlassian.bitbucket.scm.ChangesCommandParameters parameters, @Nonnull com.atlassian.bitbucket.util.PageRequest pageRequest) - Specified by:
changesin interfacecom.atlassian.bitbucket.scm.PluginCommandFactory
-
changesets
@Nonnull GitCommand<com.atlassian.bitbucket.util.Page<com.atlassian.bitbucket.commit.Changeset>> changesets(@Nonnull com.atlassian.bitbucket.repository.Repository repository, @Nonnull com.atlassian.bitbucket.scm.ChangesetsCommandParameters parameters, @Nonnull com.atlassian.bitbucket.util.PageRequest pageRequest) - Specified by:
changesetsin interfacecom.atlassian.bitbucket.scm.PluginCommandFactory
-
commit
@Nonnull GitCommand<com.atlassian.bitbucket.commit.Commit> commit(@Nonnull com.atlassian.bitbucket.repository.Repository repository, @Nonnull com.atlassian.bitbucket.scm.CommitCommandParameters parameters) - Specified by:
commitin interfacecom.atlassian.bitbucket.scm.PluginCommandFactory
-
commits
@Nonnull GitCommand<com.atlassian.bitbucket.util.Page<com.atlassian.bitbucket.commit.Commit>> commits(@Nonnull com.atlassian.bitbucket.repository.Repository repository, @Nonnull com.atlassian.bitbucket.scm.CommitsCommandParameters parameters, @Nonnull com.atlassian.bitbucket.util.PageRequest pageRequest) - Specified by:
commitsin interfacecom.atlassian.bitbucket.scm.PluginCommandFactory
-
commits
@Nonnull GitCommand<Void> commits(@Nonnull com.atlassian.bitbucket.repository.Repository repository, @Nonnull com.atlassian.bitbucket.scm.CommitsCommandParameters parameters, @Nonnull com.atlassian.bitbucket.commit.CommitCallback callback) - Specified by:
commitsin interfacecom.atlassian.bitbucket.scm.PluginCommandFactory
-
commonAncestor
@Nonnull GitCommand<com.atlassian.bitbucket.commit.MinimalCommit> commonAncestor(@Nonnull com.atlassian.bitbucket.repository.Repository repository, @Nonnull com.atlassian.bitbucket.scm.CommonAncestorCommandParameters parameters) - Specified by:
commonAncestorin interfacecom.atlassian.bitbucket.scm.PluginCommandFactory- Since:
- 5.0
-
create
@Nonnull GitCommand<Void> create(@Nonnull com.atlassian.bitbucket.repository.Repository repository, @Nonnull com.atlassian.bitbucket.scm.CreateCommandParameters parameters) - Specified by:
createin interfacecom.atlassian.bitbucket.scm.PluginCommandFactory- Since:
- 7.5
-
defaultBranch
@Nonnull GitCommand<com.atlassian.bitbucket.repository.Branch> defaultBranch(@Nonnull com.atlassian.bitbucket.repository.Repository repository) - Specified by:
defaultBranchin interfacecom.atlassian.bitbucket.scm.PluginCommandFactory
-
delete
@Nonnull GitCommand<Void> delete(@Nonnull com.atlassian.bitbucket.repository.Repository repository, @Nonnull com.atlassian.bitbucket.scm.DeleteCommandParameters parameters) - Specified by:
deletein interfacecom.atlassian.bitbucket.scm.PluginCommandFactory
-
diff
@Nonnull GitCommand<Void> diff(@Nonnull com.atlassian.bitbucket.repository.Repository repository, @Nonnull com.atlassian.bitbucket.scm.DiffCommandParameters parameters, @Nonnull com.atlassian.bitbucket.content.DiffContentCallback callback) - Specified by:
diffin interfacecom.atlassian.bitbucket.scm.PluginCommandFactory
-
diff
@Nonnull GitCommand<Void> diff(@Nonnull com.atlassian.bitbucket.repository.Repository repository, @Nonnull com.atlassian.bitbucket.scm.DiffCommandParameters parameters, @Nonnull com.atlassian.bitbucket.io.TypeAwareOutputSupplier outputSupplier) - Specified by:
diffin interfacecom.atlassian.bitbucket.scm.PluginCommandFactory- Since:
- 7.7
-
diffStatsSummary
@Nonnull GitCommand<com.atlassian.bitbucket.content.DiffStatsSummary> diffStatsSummary(@Nonnull com.atlassian.bitbucket.repository.Repository repository, @Nonnull com.atlassian.bitbucket.scm.DiffStatsSummaryCommandParameters parameters) - Specified by:
diffStatsSummaryin interfacecom.atlassian.bitbucket.scm.PluginCommandFactory- Parameters:
repository- the repository to retrieve the diff stats summary fromparameters- parameters describing the two commits to diff, and additional settings for controlling the shape and content of the diff stats summary- Returns:
- a command which can retrieve the diff stats summary synchronously or asynchronously
- Since:
- 9.1
-
directory
@Nonnull GitCommand<Void> directory(@Nonnull com.atlassian.bitbucket.repository.Repository repository, @Nonnull com.atlassian.bitbucket.scm.DirectoryCommandParameters parameters, @Nonnull com.atlassian.bitbucket.content.ContentTreeCallback callback, @Nonnull com.atlassian.bitbucket.util.PageRequest pageRequest) - Specified by:
directoryin interfacecom.atlassian.bitbucket.scm.PluginCommandFactory
-
file
@Nonnull GitCommand<Void> file(@Nonnull com.atlassian.bitbucket.repository.Repository repository, @Nonnull com.atlassian.bitbucket.scm.FileCommandParameters parameters, @Nonnull com.atlassian.bitbucket.content.FileContentCallback callback, @Nonnull com.atlassian.bitbucket.util.PageRequest pageRequest) - Specified by:
filein interfacecom.atlassian.bitbucket.scm.PluginCommandFactory
-
rawFile
@Nonnull GitCommand<Void> rawFile(@Nonnull com.atlassian.bitbucket.repository.Repository repository, @Nonnull com.atlassian.bitbucket.scm.RawFileCommandParameters parameters, @Nonnull com.atlassian.bitbucket.io.TypeAwareOutputSupplier outputSupplier) - Specified by:
rawFilein interfacecom.atlassian.bitbucket.scm.PluginCommandFactory
-
refs
@Nonnull GitCommand<Void> refs(@Nonnull com.atlassian.bitbucket.repository.Repository repository, @Nonnull com.atlassian.bitbucket.scm.RefsCommandParameters parameters, @Nonnull com.atlassian.bitbucket.repository.RefCallback callback) - Specified by:
refsin interfacecom.atlassian.bitbucket.scm.PluginCommandFactory- Since:
- 6.4
-
repositorySize
@Nonnull GitCommand<com.atlassian.bitbucket.scm.RepositorySize> repositorySize(@Nonnull com.atlassian.bitbucket.repository.Repository repository, @Nonnull com.atlassian.bitbucket.scm.RepositorySizeCommandParameters parameters) - Specified by:
repositorySizein interfacecom.atlassian.bitbucket.scm.PluginCommandFactory- Since:
- 7.14
-
resolveRef
@Nonnull GitCommand<com.atlassian.bitbucket.repository.Ref> resolveRef(@Nonnull com.atlassian.bitbucket.repository.Repository repository, @Nonnull com.atlassian.bitbucket.scm.ResolveRefCommandParameters parameters) - Specified by:
resolveRefin interfacecom.atlassian.bitbucket.scm.PluginCommandFactory- Since:
- 4.6
-
resolveRefs
@Nonnull GitCommand<Map<String,com.atlassian.bitbucket.repository.Ref>> resolveRefs(@Nonnull com.atlassian.bitbucket.repository.Repository repository, @Nonnull com.atlassian.bitbucket.scm.ResolveRefsCommandParameters parameters) - Specified by:
resolveRefsin interfacecom.atlassian.bitbucket.scm.PluginCommandFactory- Since:
- 4.4
-
size
@Nonnull GitCommand<Long> size(@Nonnull com.atlassian.bitbucket.repository.Repository repository, @Nonnull com.atlassian.bitbucket.scm.SizeCommandParameters parameters) - Specified by:
sizein interfacecom.atlassian.bitbucket.scm.PluginCommandFactory- Since:
- 7.7
-
tags
@Nonnull GitCommand<com.atlassian.bitbucket.util.Page<com.atlassian.bitbucket.repository.Tag>> tags(@Nonnull com.atlassian.bitbucket.repository.Repository repository, @Nonnull com.atlassian.bitbucket.scm.TagsCommandParameters parameters, @Nonnull com.atlassian.bitbucket.util.PageRequest pageRequest) - Specified by:
tagsin interfacecom.atlassian.bitbucket.scm.PluginCommandFactory
-
tags
@Nonnull GitCommand<Void> tags(@Nonnull com.atlassian.bitbucket.repository.Repository repository, @Nonnull com.atlassian.bitbucket.scm.TagsCommandParameters parameters, @Nonnull com.atlassian.bitbucket.repository.TagCallback callback) - Specified by:
tagsin interfacecom.atlassian.bitbucket.scm.PluginCommandFactory
-
traverseCommits
@Nonnull GitCommand<Void> traverseCommits(@Nonnull com.atlassian.bitbucket.repository.Repository repository, @Nonnull com.atlassian.bitbucket.commit.graph.TraversalCallback callback) - Specified by:
traverseCommitsin interfacecom.atlassian.bitbucket.scm.PluginCommandFactory- Since:
- 4.6
-
type
@Nonnull GitCommand<com.atlassian.bitbucket.content.ContentTreeNode.Type> type(@Nonnull com.atlassian.bitbucket.repository.Repository repository, @Nonnull com.atlassian.bitbucket.scm.TypeCommandParameters parameters) - Specified by:
typein interfacecom.atlassian.bitbucket.scm.PluginCommandFactory
-