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

Function _git_log_date

tools/docs_and_notebooks_check.py:453–466  ·  view source on GitHub ↗
(repo_root: Path, rel_path: str, extra_args: Sequence[str] = ())

Source from the content-addressed store, hash-verified

451
452
453def _git_log_date(repo_root: Path, rel_path: str, extra_args: Sequence[str] = ()) -> date | None:
454 args = [
455 "log",
456 "-1",
457 "--date=short",
458 "--format=%cd",
459 *extra_args,
460 "--",
461 rel_path,
462 ]
463 code, out, _err = _run_git(args, cwd=repo_root)
464 if code != 0:
465 return None
466 return _parse_git_iso_date(out)
467
468
469def git_last_touched(repo_root: Path, rel_path: str) -> date | None:

Callers 2

git_last_touchedFunction · 0.85
git_last_content_updatedFunction · 0.85

Calls 2

_parse_git_iso_dateFunction · 0.85
_run_gitFunction · 0.70

Tested by

no test coverage detected