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>
-
Field Summary
Fields inherited from interface com.atlassian.bitbucket.scm.git.command.GitCommandBuilderSupport
ENV_AUTHOR_DATE, ENV_AUTHOR_EMAIL, ENV_AUTHOR_NAME, ENV_COMMITTER_DATE, ENV_COMMITTER_EMAIL, ENV_COMMITTER_NAME -
Method Summary
Modifier and TypeMethodDescriptioncolor(GitDiffColor value) Sets thecolormode for the diff.fullIndex(boolean value) Sets a flag indicating whethergit diffshould output full 40-byte hashes for the content IDs on theindex header.renames(GitDiffRenames value) Sets therename detectionmode for the diff.renames(GitDiffRenames renames, Integer threshold) Sets therename detectionmode for the diff.Methods inherited from interface com.atlassian.bitbucket.scm.CommandBuilderSupport
clearEnvironment, defaultExitHandler, exitHandler, removeEnvironment, withEnvironmentMethods inherited from interface com.atlassian.bitbucket.scm.git.command.GitCommandBuilderSupport
alternate, alternates, alternates, author, author, author, build, commitish, committer, committer, committer, treeish, withConfiguration, withConfiguration, withConfiguration, withConfiguration
-
Method Details
-
ancestor
-
clearPaths
-
color
Sets thecolormode for the diff.- Parameters:
value- thecolormode- Returns:
this- Throws:
NullPointerException- if the providedvalueisnull
-
fullIndex
Sets a flag indicating whethergit diffshould output full 40-byte hashes for the content IDs on theindex header. By default, shortened hashes are shown.- Parameters:
value-trueto display full 40-byte hashes on the index header; otherwise,falseto display short hashes- Returns:
this
-
path
-
paths
-
paths
-
renames
Sets therename detectionmode for the diff. If the specified modesupports a threshold, the default value is used.- Parameters:
value- therename detectionmode- Returns:
this- Throws:
NullPointerException- if the providedvalueisnull
-
renames
Sets therename detectionmode for the diff. If the specified modesupports a threshold, the provided threshold will be used. Otherwise, the provided threshold is ignored.Note:
git diffandgit diff-treewill not allow setting the similarity threshold to 100%; running a command likegit diff-tree -C100ignores 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- therename detectionmodethreshold- a similarity threshold between 1% and 99%, ornullto use the default threshold- Returns:
this- Throws:
IllegalArgumentException- if the provided threshold is negative, 0 or greater than 99NullPointerException- if the providedrenamesisnull
-
rev
-