Skip to content

feat: stage and unstage a line selection - #67

Merged
undont merged 6 commits into
mainfrom
add/visual-stage-unstage
Oct 19, 2026
Merged

undont merged 6 commits into
mainfrom
add/visual-stage-unstage

Conversation

@undont

@undont undont commented Oct 19, 2026 •

Copy link
Copy Markdown
Owner

closes #48

Summary

  • s / u in visual mode stage and unstage only the selected lines; normal s / u stay hunk-level and finish a partly staged hunk
  • split takes whole rows, so a modified line moves with both halves; stacked can take one side alone
  • part of a replacement of unequal length stages without a refusal: unselected old lines stay, selected new lines follow them
  • refused with a message on files that stage whole, in the dw / ds views, and on hunks holding staged content the diff can't show
  • g? notes the visual keys on the hunk row where line staging is available

Test plan

  • make check clean

@undont undont changed the title add: stage and unstage a line selection feat: stage and unstage a line selection Oct 19, 2026
@undont
undont merged commit e11de79 into main Oct 19, 2026
15 checks passed
@undont
undont deleted the add/visual-stage-unstage branch October 19, 2026 13:30
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.

Ability to split hunks

1 participant