Interface GitDiffCoreBuilder<B extends GitDiffCoreBuilder<B>>

All Superinterfaces:
com.atlassian.bitbucket.scm.CommandBuilderSupport<B>, GitCommandBuilderSupport<B>
All Known Subinterfaces:
GitDiffBuilder, GitDiffTreeBuilder

public interface GitDiffCoreBuilder<B extends GitDiffCoreBuilder<B>> extends GitCommandBuilderSupport<B>
  • Method Details

    • ancestor

      @Nonnull B ancestor(String value)
    • clearPaths

      @Nonnull B clearPaths()
    • color

      @Nonnull B color(@Nonnull GitDiffColor value)
      Sets the color mode for the diff.
      Parameters:
      value - the color mode
      Returns:
      this
      Throws:
      NullPointerException - if the provided value is null
    • fullIndex

      @Nonnull B fullIndex(boolean value)
      Sets a flag indicating whether git diff should output full 40-byte hashes for the content IDs on the index header. By default, shortened hashes are shown.
      Parameters:
      value - true to display full 40-byte hashes on the index header; otherwise, false to display short hashes
      Returns:
      this
    • path

      @Nonnull B path(String value)
    • paths

      @Nonnull B paths(String value, String... values)
    • paths

      @Nonnull B paths(Iterable<String> values)
    • renames

      @Nonnull B renames(@Nonnull GitDiffRenames value)
      Sets the rename detection mode for the diff. If the specified mode supports a threshold, the default value is used.
      Parameters:
      value - the rename detection mode
      Returns:
      this
      Throws:
      NullPointerException - if the provided value is null
    • renames

      @Nonnull B renames(@Nonnull GitDiffRenames renames, Integer threshold)
      Sets the rename detection mode for the diff. If the specified mode supports a threshold, the provided threshold will be used. Otherwise, the provided threshold is ignored.

      Note: git diff and git diff-tree will not allow setting the similarity threshold to 100%; running a command like git diff-tree -C100 ignores the threshold and applies the default 50% threshold instead. As a result, this builder limits the threshold provided to be between 1 and 99, inclusive.

      Parameters:
      renames - the rename detection mode
      threshold - a similarity threshold between 1% and 99%, or null to use the default threshold
      Returns:
      this
      Throws:
      IllegalArgumentException - if the provided threshold is negative, 0 or greater than 99
      NullPointerException - if the provided renames is null
    • rev

      @Nonnull B rev(String value)