MCPcopy Create free account
hub / github.com/dagger/dagger / tree

Method tree

sdk/python/src/dagger/client/gen.py:9562–9586  ·  view source on GitHub ↗

The filesystem tree at this ref. Parameters ---------- discard_git_dir: Set to true to discard .git directory. depth: The depth of the tree to fetch. include_tags: Set to true to populate tag refs in the local checkout .git

(
        self,
        *,
        discard_git_dir: bool | None = False,
        depth: int | None = 1,
        include_tags: bool | None = False,
    )

Source from the content-addressed store, hash-verified

9560 return await _ctx.execute(str)
9561
9562 def tree(
9563 self,
9564 *,
9565 discard_git_dir: bool | None = False,
9566 depth: int | None = 1,
9567 include_tags: bool | None = False,
9568 ) -> Directory:
9569 """The filesystem tree at this ref.
9570
9571 Parameters
9572 ----------
9573 discard_git_dir:
9574 Set to true to discard .git directory.
9575 depth:
9576 The depth of the tree to fetch.
9577 include_tags:
9578 Set to true to populate tag refs in the local checkout .git.
9579 """
9580 _args = [
9581 Arg("discardGitDir", discard_git_dir, False),
9582 Arg("depth", depth, 1),
9583 Arg("includeTags", include_tags, False),
9584 ]
9585 _ctx = self._select("tree", _args)
9586 return Directory(_ctx)
9587
9588 def with_(self, cb: Callable[["GitRef"], "GitRef"]) -> "GitRef":
9589 """Call the provided callable with current GitRef.

Callers 5

test_git_repositoryFunction · 0.45
test_container_buildFunction · 0.45
testGitMethod · 0.45
mainMethod · 0.45
mainMethod · 0.45

Calls 3

ArgClass · 0.90
_selectMethod · 0.80
DirectoryClass · 0.70

Tested by 3

test_git_repositoryFunction · 0.36
test_container_buildFunction · 0.36
testGitMethod · 0.36