Interface GitMvBuilder
- All Superinterfaces:
com.atlassian.bitbucket.scm.CommandBuilderSupport<GitMvBuilder>,GitCommandBuilderSupport<GitMvBuilder>
A builder for the {code git mv} command
- Since:
- 7.14
-
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 TypeMethodDescriptionbuild()Clears anysourcesthat have been added, allowing the builder to be reused to construct multiple commands.destination(String value) Specifies the path that thesourcefile, directory or symlink should be renamed to.force(boolean value) Specifies a path to move todestination.Specifies path(s) to move todestination.Specifies path(s) to move todestination.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
-
build
-
clearSources
Clears anysourcesthat have been added, allowing the builder to be reused to construct multiple commands.- Returns:
- the builder
-
destination
Specifies the path that thesourcefile, directory or symlink should be renamed to.- Parameters:
value- the path to move the source to- Returns:
- the builder
-
force
- Parameters:
value-trueto force renaming or moving of a file even if the target exists- Returns:
- the builder
-
source
Specifies a path to move todestination.- Parameters:
value- the file, directory or symlink to move- Returns:
- the builder
-
sources
Specifies path(s) to move todestination. To rename a file, directory or symlink, only 1 path should be specified. If multiple source paths are specified,git mvwill move the specified sources into thedestination, which MUST be an existing directory.- Parameters:
value- the file, directory or symlink to movemoreValues- additional files, directories or symlinks to move- Returns:
- the builder
-
sources
Specifies path(s) to move todestination. To rename a file, directory or symlink, only 1 path should be specified. If multiple source paths are specified,git mvwill move the specified sources into thedestination, which MUST be an existing directory.- Parameters:
values- the files, directories and/or symlinks to move- Returns:
- the builder
-