Expand description
Git merge driver for spec files.
This module implements a custom merge driver for .chant/specs/*.md files
that intelligently resolves frontmatter conflicts while preserving body content.
Structs§
- Merge
Driver Setup Result - Result of setting up the merge driver
- Parsed
Spec - Result of parsing a spec file into frontmatter and body
Enums§
- Merge
Rule - Merge strategy for a frontmatter field
Functions§
- assemble_
spec - Assemble a spec file from frontmatter and body
- get_
merge_ rule - Get merge rule for a field (default to PreferOurs if not specified)
- get_
setup_ instructions - Generate git configuration instructions for the merge driver
- merge_
body - Merge body content using git’s 3-way merge
- merge_
frontmatter - Merge frontmatter from base, ours, and theirs using declarative rules
- parse_
spec_ file - Parse a spec file into frontmatter and body components
- run_
merge_ driver - Run the merge driver
- serialize_
frontmatter - Serialize frontmatter back to YAML string
- setup_
merge_ driver - Set up the merge driver for the current repository