Skip to main content

Module git

Module git 

Source
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§

ChangeSet
Files that changed between two commits, split by how the index should treat them.
CommitFiles
One commit’s file changes (first-parent history).

Functions§

changed_files
Files changed between base_sha and 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 limit first-parent commits with their added and changed files.
working_changes
Uncommitted changes (staged and unstaged) against base.

Type Aliases§

FileHunks
A changed file and its changed new-side line ranges.