Skip to content

Support unstage single file for untracked files#1412

Closed
liangkarl wants to merge 2 commits intojonas:masterfrom
liangkarl:bugfix.unstage-a-file-at-a-time
Closed

Support unstage single file for untracked files#1412
liangkarl wants to merge 2 commits intojonas:masterfrom
liangkarl:bugfix.unstage-a-file-at-a-time

Conversation

@liangkarl
Copy link
Copy Markdown

Pressing 'u' would unstage all untracked files in stage view from main view, which was staged one by one in the 'Untracked changes' the status view.
The two different behavior is pretty annoying because the same 'u' would have different effect in stage and status view.

If there are any binary, empty or renamed files staging, tig would
failed to unstage them in the main view, which is because the assumption
of stage view assume every file would have 'chunk' to stage/unstage.
Pressing 'u' would unstage all untracked files in stage view from
main view, which was staged one by one in the 'Untracked changes'
the status view.
The two different behavior is pretty annoying because the same 'u'
would have different effect in stage and status view.

Signed-off-by: Karl Liang <liang.karl@outlook.com>
@liangkarl liangkarl force-pushed the bugfix.unstage-a-file-at-a-time branch from b179f8e to 4fcdced Compare March 13, 2026 21:35
@liangkarl liangkarl closed this Mar 30, 2026
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