Interface GitLsTreeBuilder
- All Superinterfaces:
com.atlassian.bitbucket.scm.CommandBuilderSupport<GitLsTreeBuilder>,GitCommandBuilderSupport<GitLsTreeBuilder>
A type-safe, argument-safe builder for
git ls-tree.-
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 TypeMethodDescriptionreset the paths provided to emptynullTerminated(boolean value) Offers a way to filter the subtree passed in viatree(String, String)to zero to many paths by matching the name of the node in the tree.recursive(boolean value) sizes(boolean value) Offers a convenient shorthand for identifying a subtree in a given commit.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
-
clearPaths
reset the paths provided to empty- Returns:
this- Since:
- 4.13
-
nullTerminated
- Parameters:
value-trueto pass-ztogit ls-tree; otherwise,false- Returns:
this- Since:
- 4.2
-
path
Offers a way to filter the subtree passed in viatree(String, String)to zero to many paths by matching the name of the node in the tree. For example,
will ensure that from the "src/main/java" tree, only the file "javafile.java" is selected..tree("master", "src/main/java") .path("javafile.java")This is not exclusive to files, and the path can be for a file, directory, or submodule.
- Parameters:
path- a node on the tree passed totree(String, String)- Returns:
this- Since:
- 4.13
-
paths
- Parameters:
value- valuevalues- values- Returns:
this- Since:
- 4.13
- See Also:
-
paths
- Parameters:
values- path iterable- Returns:
this- Since:
- 4.13
- See Also:
-
recursive
- Parameters:
value-trueto pass-rtogit ls-tree; otherwise,false- Returns:
this
-
sizes
- Parameters:
value-trueto pass-ltogit ls-tree; otherwise,false- Returns:
this- Since:
- 4.2
-
tree
- Parameters:
value- thetree-ish(typically acommitortreeby ref name or SHA-1) to pass togit ls-tree- Returns:
this
-
tree
Offers a convenient shorthand for identifying a subtree in a given commit. For example, passing("master", "src/main/java")will output the contents of thesrc/main/javatree on the "master" branch. Note that passing "master:src/main/java" totree(String)would produce the same output.- Parameters:
rev- the commit to display the tree at, identified by ref name or SHA-1file- the path of the tree to display, which may be""to display the root tree- Returns:
this
-