utils/commit/commit_attribution library

Git commit attribution and message formatting.

Ported from neomage/src/utils/commitAttribution.ts (961 LOC).

Tracks Neomage's contributions to files, calculates attribution percentages for git commits, and provides snapshot/restore support for session persistence.

Classes

AttributionData
Full attribution data for git notes JSON.
AttributionSnapshotMessage
Attribution snapshot message for persistence.
AttributionState
Attribution state for tracking Neomage's contributions to files.
AttributionSummary
Summary of Neomage's contribution for a commit.
BaselineEntry
Session baseline entry.
CommitAttributionManager
Manages git commit attribution tracking and calculation.
FileAttribution
Per-file attribution details for git notes.
FileAttributionState
Per-file attribution state tracked across edits.
FileChange
A single file change for bulk tracking.
SurfaceBreakdownEntry
Surface breakdown entry for attribution data.

Enums

RepoClassification
Repo classification result.