Git History (aiti-git-history)
About 1 min
aiti-git-history · Git History
A client-only UI extension: there is no git logic here — every read/write goes through the aiti-git-ops shared engine REST (/api/extensions/aiti-git-ops/git/*). Without the engine the page shows a guided empty state and nothing else breaks (optionalDependsOn soft dependency).
Five views
- Commits: commit list with filters — ref (default HEAD), author, path (file or dir), message contains,
-Spickaxe (slow), since/until; paginated "load more"; clicking a commit expands its changed files, each leading to file history / blame - File history: single-file history with
--followrename tracking - Blame: loaded per viewport (scroll-as-you-go, never the whole file at once); binary files are skipped
- Compare: any two refs (branch/tag/commit), sides swappable;
HEAD~1 ↔ HEADshortcut; differences can be "sent to Review" to open aiti-git-review directly - Reflog: HEAD movement — the safety net behind revert / reset; each row offers "branch here" and "soft reset here"
Safe writes
- Write operations are limited to revert (appends a revert commit — no history rewrite, nothing pushed) and reset --soft / --mixed (worktree can stay intact, index optionally cleared; recoverable via reflog)
--hardis deliberately not offered; all writes are audited by the engine (state/aiti-git-ops/git-ops.jsonl) and share the same whitelist and serialization queue as the folder / session-manager write exits- The quick filter over loaded rows is client-side (filter-as-you-type) and never spawns new git processes
Entry points
- Toolbar History button → the full-page browser (pages slot)
- Client service
aiti-git-history.open({ cwd, ref?, path? }): consumers such as aiti-folder's git menus can open a repo/file history directly - Lazy extension (
clientImmediately: false): materialized on first open, zero cost on first paint