FredrikNoren / ungit

The easiest way to use git. On any platform. Anywhere.
MIT License
10.41k stars 637 forks source link

Inline staging? #1521

Open wmertens opened 2 years ago

wmertens commented 2 years ago

Right now, the status area has checkboxes to indicate what will be committed, and no indication of what is staged.

How about adding a staging mode, where clicking the checkbox actually stages the file, and then the file gets some indication like color or font to show it's staged.

So it would look almost exactly the same, except that when a file has staged and unstaged parts, you'd see it twice, once with and once without the staging indication.

The main reason I'd like this is to make the patching more intuitive. You'd select a range of lines, there'd be a stage button, and then when you click it the display switches to staging mode and only those lines get staged.

Advantage of that is that selecting + a button is way faster than clicking checkboxes.