agora.git.merge
Merge strategies for multi-agent branches.
At project completion, all agent/* branches merge into main.
Two strategies:
- MergeStrategy.SQUASH: each branch becomes one squashed commit on the target
(clean history; drops intra-branch granularity).
MergeStrategy.FULL: regular merge, preserving the full commit graph (full provenance; history is noisier).
Conflict handling: if a merge conflicts, the working tree is reset cleanly and the branch is reported as conflicted. No auto-resolution — the project is marked for human review. Ordering: by first-commit author-time of each branch.
Classes
MergeResult(success: 'bool', merged_branches: 'list[str]' = <factory>, conflict_branches: 'list[str]' = <factory>, conflict_files: 'list[str]' = <factory>, final_commit_sha: 'str | None' = None) |
|
- class agora.git.merge.MergeResult[source]
Bases:
objectMergeResult(success: ‘bool’, merged_branches: ‘list[str]’ = <factory>, conflict_branches: ‘list[str]’ = <factory>, conflict_files: ‘list[str]’ = <factory>, final_commit_sha: ‘str | None’ = None)
- __init__(success, merged_branches=<factory>, conflict_branches=<factory>, conflict_files=<factory>, final_commit_sha=None)