(repo_root: Path, rel_path: str)
| 471 | |
| 472 | |
| 473 | def git_last_content_updated(repo_root: Path, rel_path: str) -> tuple[date | None, bool]: |
| 474 | d = _git_log_date( |
| 475 | repo_root, |
| 476 | rel_path, |
| 477 | extra_args=[ |
| 478 | "--fixed-strings", |
| 479 | "--invert-grep", |
| 480 | "--grep", |
| 481 | META_COMMIT_MARKER, |
| 482 | ], |
| 483 | ) |
| 484 | if d is not None: |
| 485 | return d, False |
| 486 | return git_last_touched(repo_root, rel_path), True |
| 487 | |
| 488 | |
| 489 | FRONTMATTER_RE = re.compile(r"^---\s*$") |
no test coverage detected