Interface GitFormatPatchBuilder

All Superinterfaces:
com.atlassian.bitbucket.scm.CommandBuilderSupport<GitFormatPatchBuilder>, GitCommandBuilderSupport<GitFormatPatchBuilder>

public interface GitFormatPatchBuilder extends GitCommandBuilderSupport<GitFormatPatchBuilder>
A builder which can be used to construct a command for running git format-patch.
Since:
6.7
  • Method Details

    • allAncestors

      @Nonnull GitFormatPatchBuilder allAncestors(boolean value)
      Parameters:
      value - indicates whether or not to generate a patch which includes all ancestors of rev. If true then the value provided by ancestor is ignored.
      Returns:
      this
    • ancestor

      @Nonnull GitFormatPatchBuilder ancestor(@Nullable String value)
      Specifies the ancestor for the patch. This is only applicable when allAncestors is false. If this method isn't called, the patch will represent one single commit, the rev.
      Parameters:
      value - the ancestor
      Returns:
      this
    • rev

      @Nonnull GitFormatPatchBuilder rev(@Nonnull String value)
      Specifies the rev for the patch.
      Parameters:
      value - the rev
      Returns:
      this