git gui has an option to revert changes, but that applies to the whole file. Is there an option to revert a line or hunk rather than the whole file?
Thanks, Steve
git gui has an option to revert changes, but that applies to the whole file. Is there an option to revert a line or hunk rather than the whole file?
Thanks, Steve
Re: Revert hunk?
Am 01.05.2010 21:54, schrieb Steve Folly:
> git gui has an option to revert changes, but that applies > to the whole file. Is there an option to revert a line > or hunk rather than the whole file?
Stage everything except that hunk or line, and then revert.
-- Hannes
Re: Revert hunk?
On Sat, May 1, 2010 at 12:54 PM, Steve Folly <steve@spfweb.co.uk> wrote:
> git gui has an option to revert changes, but that applies > to the whole file. Is there an option to revert a line > or hunk rather than the whole file?
cola has the ability to stage/revert on a per line basis:
http://cola.tuxfamily.org/
-- Uri Please consider the environment before printing this message. http://www.panda.org/how_you_can_help/