Expand description
comindly-git — git change detection for incremental indexing.
Uses git2 (vendored libgit2, statically linked → single binary preserved). At index time
the working tree and .git are present; in CI indexing runs on a pushed commit, so
incremental indexing diffs the last-indexed commit against the current HEAD and re-processes
only what changed (added / modified / deleted files).
Structs§
- Change
Set - Files that changed between two commits, split by how the index should treat them.
- Commit
Files - One commit’s file changes (first-parent history).
Functions§
- changed_
files - Files changed between
base_shaand current HEAD. Renames are recorded as a delete of the old path plus an add of the new path (so downstream drop/add logic stays simple). - head_
commit - The current HEAD commit SHA of the repo at
repo_path— stored as the index version so the next run knows where to diff from. - history
- The last
limitfirst-parent commits with their added and changed files. - working_
changes - Uncommitted changes (staged and unstaged) against
base.
Type Aliases§
- File
Hunks - A changed file and its changed new-side line ranges.