altsem / gitu

A TUI Git client inspired by Magit

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Allow staging all files under "unstaged changes" at once

crmsnbleyd opened this issue · comments

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.

@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..

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