Read a project's language, title templates and branch template from its config
This commit is contained in:
@@ -12,6 +12,7 @@ from branch_chunks.read import branch_chunks, unsupported
|
||||
from branch_chunks.cut import BranchChunk
|
||||
from transcript_archive.project_key import checkout_of
|
||||
from routing_figures.chunk import Chunk, chunk_figures, ChunkFigures, Subagent
|
||||
from project_config.main import commit_title
|
||||
from git_cli.git_repo import default_ref, Git
|
||||
from claude_code.entries import Entry, parse_entry
|
||||
from failure import Failure
|
||||
@@ -104,7 +105,7 @@ def branch_history(checkout: str, home: pathlib.Path, git: Git) -> list[BranchCh
|
||||
if why := unsupported(checkout, home, guarded):
|
||||
return Failure(f"its chunks' items and later fixes are not counted: {why}")
|
||||
ref = default_ref(checkout, GIT_TIMEOUT, guarded=True, run=git)
|
||||
return ref if isinstance(ref, Failure) else branch_chunks(ref, guarded)
|
||||
return ref if isinstance(ref, Failure) else branch_chunks(ref, guarded, commit_title(checkout, home, guarded))
|
||||
|
||||
|
||||
def entries(path: pathlib.Path) -> list[Entry]:
|
||||
|
||||
Reference in New Issue
Block a user