Skip to main content

Module squash

Module squash 

Source

Structs§

AmendMigrationContext
Context for amend migration, assembled before calling the agent.
PendingSquash
Written to .git/chronicle/pending-squash.json by prepare-commit-msg. Consumed and deleted by post-commit.
SquashSynthesisContext
Context for squash synthesis, assembled before calling the agent.
SquashSynthesisContextV3
Context for v3 squash synthesis.

Functions§

collect_source_annotations
Collect annotations from source commits using git notes.
collect_source_annotations_v3
Collect annotations from source commits, normalizing all versions to v3 via schema::parse_annotation().
collect_source_messages
Collect commit messages from source commits.
delete_pending_squash
Delete the pending-squash.json file.
migrate_amend_annotation
Migrate an annotation from a pre-amend commit to a post-amend commit.
read_pending_squash
Read pending-squash.json. Returns None if missing, stale, or invalid. Stale or invalid files are deleted with a warning.
synthesize_squash_annotation
Synthesize an annotation from multiple source annotations (squash merge).
synthesize_squash_annotation_v3
Synthesize a v3 annotation from multiple source annotations (squash merge).
write_pending_squash
Write pending-squash.json to .git/chronicle/.