altsem / gitu

A TUI Git client inspired by Magit
MIT License
1.7k stars 88 forks source link

Allow staging all files under "unstaged changes" at once #75

Closed crmsnbleyd closed 4 months ago

crmsnbleyd commented 4 months ago

The magit package allows you to do so by "staging" the heading itself, which stages everything under it. For example if changes are made to flake.nix and cargo.toml, pressing s on the heading "unstaged changes" will stage both files. You can also unstage all staged files in a similar fashion.

altsem commented 4 months ago

@crmsnbleyd I might've solved this in the linked PR. Saw that there's an extra y/n prompt in magit when doing this. I wonder if we should keep the prompt, or if it's just annoying..

altsem commented 4 months ago

Actually, this y/n prompt in magit seems a bit inconsistent.. Could add it in the future.