Expand description
Git time-travel intelligence.
Lightweight, on-demand history queries backed by the git CLI: line blame,
the commit history of a symbol’s line range, and what changed since a
revision. Nothing here is stored in the index — keeping indexing fast — but
head records the current commit so callers can detect a branch switch.
Structs§
- Blame
Line - One blamed line: the commit and author that last touched it.
- Changed
File - A path changed relative to a revision.
- Commit
- One commit in a history listing.
Functions§
- blame
- Blame a single 1-based line of
rel_path. - changed_
since - Files changed relative to
rev(e.g. a branch, tag, orHEAD~5). - file_
history - Commits that touched
rel_path, newest first. - head
- The current commit sha and branch name, if
rootis a repo. - is_repo
- True if
rootis inside a git work tree. - line_
history - Commits that touched lines
[start, end]ofrel_path, newest first.