Add contextual bulk actions to the Git sidebar #3

Merged
exler merged 3 commits from feat/git-sidebar-bulk-actions into main 2026-11-23 23:37:41 +01:00
Collaborator

Summary

Put Stage All and Unstage All next to the relevant Git sidebar sections. The sidebar, menu and command palette share a single asynchronous action. Bulk actions leave conflicts untouched and only alter the Git index. NUL-separated literal pathspecs handle unusual names and large selections without argument-size limits.

Verification

cargo test --locked: 48 passed, including real disposable repos for unborn branches, conflicts, rename handling, failures, and large/unusual selections. Native Xvfb verified both controls and unstaging; staging verified on the initial implementation. At the minimum sidebar width long section headings are truncated, but action links and counts remain visible. In-memory edits are not staged; the working tree is untouched. The existing non-UTF-8 filename limitation remains.

## Summary Put Stage All and Unstage All next to the relevant Git sidebar sections. The sidebar, menu and command palette share a single asynchronous action. Bulk actions leave conflicts untouched and only alter the Git index. NUL-separated literal pathspecs handle unusual names and large selections without argument-size limits. ## Verification `cargo test --locked`: 48 passed, including real disposable repos for unborn branches, conflicts, rename handling, failures, and large/unusual selections. Native Xvfb verified both controls and unstaging; staging verified on the initial implementation. At the minimum sidebar width long section headings are truncated, but action links and counts remain visible. In-memory edits are not staged; the working tree is untouched. The existing non-UTF-8 filename limitation remains.
Keep bulk index operations atomic for large path sets
Some checks failed
Verify and release / verify (push) Has been cancelled
Verify and release / build (push) Has been cancelled
Verify and release / verify (pull_request) Successful in 2m11s
Verify and release / build (pull_request) Has been skipped
fbabadbd66
exler force-pushed feat/git-sidebar-bulk-actions from fbabadbd66
Some checks failed
Verify and release / verify (push) Has been cancelled
Verify and release / build (push) Has been cancelled
Verify and release / verify (pull_request) Successful in 2m11s
Verify and release / build (pull_request) Has been skipped
to d69de12f28
All checks were successful
Verify and release / verify (push) Successful in 2m12s
Verify and release / build (push) Has been skipped
Verify and release / verify (pull_request) Successful in 2m8s
Verify and release / build (pull_request) Has been skipped
2026-11-23 23:26:28 +01:00
Compare
exler merged commit 61a4f79264 into main 2026-11-23 23:37:41 +01:00
exler deleted branch feat/git-sidebar-bulk-actions 2026-11-23 23:37:41 +01:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
exler/suns!3
No description provided.