public interface

GitExtendedCommandFactory

implements PluginExtendedCommandFactory
com.atlassian.bitbucket.scm.git.command.GitExtendedCommandFactory

Class Overview

Overrides methods from the standard PluginExtendedCommandFactory 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.

Summary

Public Methods
@Nonnull GitCommand<Void> fork(Repository repository, ForkCommandParameters parameters)
@Nonnull GitCommand<Void> lastModified(Repository repository, LastModifiedCommandParameters parameters, LastModifiedCallback callback)
@Nonnull GitCommand<Branch> merge(Repository repository, MergeCommandParameters parameters)
@Nonnull GitCommand<Void> updateDefaultBranch(Repository repository, UpdateDefaultBranchCommandParameters parameters)
[Expand]
Inherited Methods
From interface com.atlassian.bitbucket.scm.PluginExtendedCommandFactory

Public Methods

@Nonnull public GitCommand<Void> fork (Repository repository, ForkCommandParameters parameters)

@Nonnull public GitCommand<Void> lastModified (Repository repository, LastModifiedCommandParameters parameters, LastModifiedCallback callback)

Parameters
repository the repository containing the starting commit
parameters parameters describing the path to stream modifications for, and the starting commit for the traversal
callback a callback to receive the latest commit for files in the specified path
Returns
  • a command to stream the latest commit to modify each files in the specified path, or null if streaming last modifications is not supported

@Nonnull public GitCommand<Branch> merge (Repository repository, MergeCommandParameters parameters)

@Nonnull public GitCommand<Void> updateDefaultBranch (Repository repository, UpdateDefaultBranchCommandParameters parameters)