Skip to main content

Timeline for answer to Splitting a hunk with magit by Dominik Honnef

Current License: CC BY-SA 3.0

Post Revisions

8 events
when toggle format what by license comment
Dec 23, 2016 at 12:38 history edited Flow CC BY-SA 3.0
added 35 characters in body
Feb 15, 2015 at 23:02 comment added jfs to be clear: magit will only commit whatever is selected. It doesn't matter how did you select e.g., I use Shift + <arrows> to select portion of a hunk and press s to stage the selected part.
Nov 6, 2014 at 3:04 comment added Vebjorn Ljosa It wasn't enough for me to set the mark (C-SPC). I had to press C-SPC a second time to activate transient-mark-mode.
Oct 26, 2012 at 19:27 vote accept deepakg
Apr 8, 2012 at 12:56 comment added Dominik Honnef Does it behave differently when using transient-mark-mode? Because I always select top to bottom and never had a problem.
Apr 8, 2012 at 0:49 comment added phils Re: my previous comment, I recently read the reason for this, which is that when you un/stage the region, point must be within the region you are acting on. You can, of course, use C-x C-x to exchange point and mark if you had done it the other way around.
Mar 1, 2012 at 20:57 comment added phils I always set the mark at the bottom of the region, and move point to the top in order to stage or unstage regions, as I've had issues (which I can't recall the specifics of) doing it the other way around in the past. YMMV.
Mar 1, 2012 at 18:37 history answered Dominik Honnef CC BY-SA 3.0