Keep configs in ~/.config/build-release/ and tool state in ~/.local/state/build-release/, under XDG_* where set
CI / tests (pull_request) Successful in 6m34s

This commit is contained in:
2026-12-03 18:56:28 +01:00
parent 20c83f861f
commit 1ca2c8efe0
142 changed files with 1095 additions and 933 deletions
+3 -2
View File
@@ -1,3 +1,4 @@
from collections.abc import Mapping
import pathlib
from failure import Failure
@@ -7,11 +8,11 @@ from project_config.main import located
from record_store.stores import store
def history_changes(default: str, home: pathlib.Path) -> list[HistoryChange] | Failure:
def history_changes(default: str, home: pathlib.Path, env: Mapping[str, str]) -> list[HistoryChange] | Failure:
"""Each merged change on the default branch that touched the history, newest first. A Failure where no commit holds the history, as for one the project's config puts outside the checkout."""
if partial := full_history():
return partial
config = located(None, home)
config = located(None, home, env)
if isinstance(config, Failure):
return config
record = store(config, "comprehension-history")