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,
)
| 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. |