How to "revert hunk" in git gui?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I always use git gui to make commits, and I like the way you can stage
and unstage hunks easily.

Often, when looking at the unstaged changes I come across some piece of
debug code that I forgot to delete, and I can't seem to find an easy way
to revert this hunk.  As a workaround, I can stage the entire file,
unstage the hunk I want to revert, and then choose "Revert changes" from
the Commit menu (which reverts just the unstaged hunks); but that's a
bit inconvenient.

I feel that this is such a common operation that I must be missing
something.

Thanks,
   Stefan


-- 
Stefan Haller
Berlin, Germany
http://www.haller-berlin.de/
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]