Skip to content

COMMITDOCK-0007: Phase 3 — stage, unstage, and discard selection#3

Merged
vedanthvdev merged 1 commit into
masterfrom
COMMITDOCK-0007
May 13, 2026
Merged

COMMITDOCK-0007: Phase 3 — stage, unstage, and discard selection#3
vedanthvdev merged 1 commit into
masterfrom
COMMITDOCK-0007

Conversation

@vedanthvdev

Copy link
Copy Markdown
Owner

Summary

Phase 3 wires Stage, Unstage, and Discard to the built-in Git extension for selected paths (everything selectable except explicitly deselected checkboxes). Protocol bumps to v4 with three new webview messages and matching palette commands.

Behaviour

  • Stage runs add on selected changes and untracked paths.
  • Unstage runs revert on selected staged paths (index only).
  • Discard asks for modal confirmation, then runs clean for selected untracked paths and restore for selected working-tree paths. Staged blobs are left untouched; copy in the dialog explains unstage-first if needed.

After a successful operation, affected paths are removed from the deselection set so the UI reflects an explicit action, then the snapshot is pushed immediately.

Verification

  • npm run compile
  • npm run lint

Follow-up

Phase 4: commit message UI and plain commit (likely auto-stage selected).

Wire the webview and palette to vscode.git add/revert/clean/restore for paths that remain selected (not in the deselected set). Discard prompts with a modal warning before deleting untracked files or reverting working tree content. Bump protocol to v4, add toolbar actions and three commands, extend the Git API subset with restore, and release 0.4.0.
@vedanthvdev vedanthvdev merged commit a4fe55d into master May 13, 2026
1 check passed
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