Interface GitAddBuilder
- All Superinterfaces:
com.atlassian.bitbucket.scm.CommandBuilderSupport<GitAddBuilder>,GitCommandBuilderSupport<GitAddBuilder>
-
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
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
-
all
-
build
-
force
Controls whether--forceis passed togit add. When provided,--forceoverrides entries from.gitignore, allowing ignored files to be added to the index and committed.- Parameters:
value-trueto use--force, overriding.gitignore; otherwise,falseto perform a "safe"git add- Returns:
this
-
path
-
paths
-
paths
-
sparse
Controls whethergit addwill allow adding index entries for files outside a sparse checkout's cone. If the checkout is not sparse, this flag does nothing.Note: This flag was introduced in Git 2.34. Calling this if the installed Git is 2.33 or older will automatically no-op, and
--sparsewill not be passed on thebuiltcommand. Unlikegit add, to prevent breaking apps using sparse checkouts, this defaults totrueif Git 2.34+ is installed.- Parameters:
value-trueto enable adding files outside the sparse checkout; otherwise,falseto refuse to add such files- Returns:
this- Since:
- 7.19
-