threads / discuss / 23662

Revert hunk?

Subject: Revert hunk?

## tl;dr

3 messages between May 1, 2010 and May 28, 2010.

replies: 2people: 3as markdown or json

Steve Folly· May 1, 2010, 19:54 UTC · lore

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

Johannes Sixt· May 1, 2010, 21:38 UTC · re: Steve Folly · lore

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
Uri Okrent· May 28, 2010, 04:17 UTC · re: Steve Folly · lore

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/

← back to recent threads