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, withEnvironment
Methods 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--force
is passed togit add
. When provided,--force
overrides entries from.gitignore
, allowing ignored files to be added to the index and committed.- Parameters:
value
-true
to use--force
, overriding.gitignore
; otherwise,false
to perform a "safe"git add
- Returns:
this
-
path
-
paths
-
paths
-
sparse
Controls whethergit add
will 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
--sparse
will not be passed on thebuilt
command. Unlikegit add
, to prevent breaking apps using sparse checkouts, this defaults totrue
if Git 2.34+ is installed.- Parameters:
value
-true
to enable adding files outside the sparse checkout; otherwise,false
to refuse to add such files- Returns:
this
- Since:
- 7.19
-