Expand description
Git memory (M3, 0001 pillar 3.2/3.3): log graph, blame, permalinks.
Reads via shell git (matches user config; not hot-path), permalinks
via libgit2 config (no spawn).
Structs§
- Blame
Card - A blame card for one line (0001 pillar 3.3).
- Changed
File - Files changed by a commit:
path | +N -Mrows for the dive view. - LogRow
- One log line from
git log --graph, with the commit hash extracted. - Remote
Enums§
Functions§
- blame_
line - Blame one line of a file (1-based). Shells out; porcelain format.
- log_
graph git log --graphfor the browser. Shells out — the log is not a per-keystroke path (0001 §3). Caller decides threading.- normalize_
remote - Normalize a remote URL (SSH or HTTPS) to a web base. Priority upstream > origin > rest is the caller’s job (0001 pillar 3.3).
- permalink
- Build the immutable permalink for a file at 1-based lines. Branch is always resolved to a commit SHA (0001 pillar 3.3).
- pick_
remote - Pick the permalink remote: upstream > origin > first remaining.
- show_
stat