MCPcopy Index your code
hub / github.com/DeepLabCut/DeepLabCut / _empty_tree

Function _empty_tree

tools/test_selector.py:206–209  ·  view source on GitHub ↗
(repo: Path)

Source from the content-addressed store, hash-verified

204
205
206def _empty_tree(repo: Path) -> str:
207 # Avoid hardcoding; derive the empty tree hash deterministically.
208 empty = _run_git(["hash-object", "-t", "tree", os.devnull], repo)
209 return _validate_sha("empty-tree", empty)
210
211
212def determine_diff_range(repo: Path, override_base: str | None, override_head: str | None) -> tuple[str, str, DiffMode]:

Callers 1

determine_diff_rangeFunction · 0.85

Calls 2

_validate_shaFunction · 0.85
_run_gitFunction · 0.70

Tested by

no test coverage detected