Git-aware incremental analysis #9

Closed
opened 2026-06-16 14:48:24 +00:00 by GKaszewski · 0 comments
Owner

What to build

Add a --since <commit|tag> flag that limits analysis to files changed since a given git ref. Uses git diff --name-only to get the changed file list, then only analyzes those files. Merges results with a cached previous full analysis.

Useful for CI where full analysis takes too long — only re-analyze what changed.

Acceptance criteria

  • --since flag accepts a git ref (commit SHA, tag, branch)
  • Only changed files are parsed by tree-sitter
  • Results merge with previous full analysis (cache file)
  • Output is identical to a full analysis when all files have changed
  • Works with all diagram levels
  • Tests verify incremental behavior

Blocked by

None - can start immediately

## What to build Add a `--since <commit|tag>` flag that limits analysis to files changed since a given git ref. Uses `git diff --name-only` to get the changed file list, then only analyzes those files. Merges results with a cached previous full analysis. Useful for CI where full analysis takes too long — only re-analyze what changed. ## Acceptance criteria - [ ] `--since` flag accepts a git ref (commit SHA, tag, branch) - [ ] Only changed files are parsed by tree-sitter - [ ] Results merge with previous full analysis (cache file) - [ ] Output is identical to a full analysis when all files have changed - [ ] Works with all diagram levels - [ ] Tests verify incremental behavior ## Blocked by None - can start immediately
GKaszewski added the P4 label 2026-06-17 06:46:22 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: GKaszewski/archlens#9