Skip to content

Add git index primitives for root instruction shadows#28

Merged
sjquant merged 1 commit into
mainfrom
sjquant/root-instruction-shadow-ris-01
May 1, 2026
Merged

Add git index primitives for root instruction shadows#28
sjquant merged 1 commit into
mainfrom
sjquant/root-instruction-shadow-ris-01

Conversation

@sjquant

@sjquant sjquant commented Apr 30, 2026

Copy link
Copy Markdown
Owner

Why

  • root instruction shadow support with the Git index primitives needed for tracked root files
  • cover the Git states that later safety checks and shadow lifecycle commands depend on

Changes

  • add a new git-index helper for tracked-path detection, HEAD:<path> blob reads, index stage inspection, index flag reads, and skip-worktree toggles
  • add integration-style tests for tracked, untracked, missing, staged deletion, unmerged, and skip-worktree scenarios
  • fix tracked detection so staged deletions remain classified as tracked while the path still exists in HEAD

Verification

  • pnpm exec vitest run src/git-index.test.ts
  • pnpm test

@sjquant sjquant merged commit e708b45 into main May 1, 2026
@sjquant sjquant deleted the sjquant/root-instruction-shadow-ris-01 branch May 3, 2026 08:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant