Code-Map: Basis-Commit nur am App-Code festmachen

This commit is contained in:
torsten 2026-11-06 06:58:24 +01:00
parent aac9f605d3
commit 36179affdd
2 changed files with 4 additions and 4 deletions

View file

@ -1,6 +1,6 @@
# Code-Map
> Automatisch erzeugt von `tools/gen_codemap.py`. Basis: `46d05ac` (2026-11-04), letzter Commit an `tippspiel/` oder `tools/`.
> Automatisch erzeugt von `tools/gen_codemap.py`. Basis: `46d05ac` (2026-11-04), letzter Commit an `tippspiel/`.
> Nicht von Hand ändern: Zweck-Texte im `PURPOSE`-Dict des Generators pflegen,
> danach `tools/gen_codemap.py` ausführen (oder `--check` in CI).

View file

@ -311,10 +311,10 @@ def md_table(headers: list[str], rows: list[list[str]]) -> str:
def git_commit() -> tuple[str, str]:
"""Letzter Commit, der Code (tippspiel/ oder tools/) angefasst hat."""
"""Letzter Commit, der den App-Code (tippspiel/) angefasst hat."""
try:
out = subprocess.run(
["git", "log", "-1", "--format=%h|%ad", "--date=short", "--", "tippspiel", "tools"],
["git", "log", "-1", "--format=%h|%ad", "--date=short", "--", "tippspiel"],
cwd=ROOT, capture_output=True, text=True, check=True).stdout.strip()
if "|" in out:
sha, date = out.split("|", 1)
@ -379,7 +379,7 @@ def main() -> int:
parts = [
"# Code-Map\n",
f"> Automatisch erzeugt von `tools/gen_codemap.py`. Basis: `{sha}` ({date}), "
f"letzter Commit an `tippspiel/` oder `tools/`.\n"
f"letzter Commit an `tippspiel/`.\n"
f"> Nicht von Hand ändern: Zweck-Texte im `PURPOSE`-Dict des Generators pflegen,\n"
f"> danach `tools/gen_codemap.py` ausführen (oder `--check` in CI).\n",
"Diese Datei ersetzt die Erkundung. Erst hier nachschlagen, dann gezielt mit\n"