News for hackers. Stuff that matters.
Re:Magit, the magical Git interface (2017) by pault on Friday October 22, 2021 @04:57AM (#28955051)
Open the diff, select the lines, right click, "stage selected lines".
Re:Magit, the magical Git interface (2017) by submeta on Friday October 22, 2021 @04:59AM (#28955059)
But how do you select lines / changes spread all over the file? Doesn‘t work via Shift or Command click.
Re:Magit, the magical Git interface (2017) by pault on Friday October 22, 2021 @05:02AM (#28955085)
Actually it might require the gitlens extension. It's very well integrated and I've been using it for so long I don't know where one ends and the other begins. Regardless, if you open the diff view, the right hand side is editable and you can make selections like any other view.
Re:Magit, the magical Git interface (2017) by pitaj on Friday October 22, 2021 @06:18PM (#28963471)
You can either do it multiple times (my preference), or you can use Alt for multiple selections.