News for hackers. Stuff that matters.
Re:Magit, the magical Git interface (2017) by mplanchard on Friday October 22, 2021 @09:05AM (#28956737)
If you start from the magit status buffer, most things operate on the repo, except file-specific commands like staging, unstaging, etc. For those, if you run the command with your cursor on the heading, rather than with it on a file (e.g. on the “unstaged files” heading rather than on a particular file), it will ask for confirmation and apply the operation to all of the files.
Re:Magit, the magical Git interface (2017) by kqr on Friday October 22, 2021 @11:00AM (#28958093)
More generally, magit applies operations on whatever the cursor is on, when it makes sense to do so. This is very convenient e.g. for staging parts of a change at different granularities: I can stage everything, then unstage a file, then stage a hunk within that file. It only takes a few keypresses, compared to a long set of commands followed by dredging through add -pi.