# Revert hunk?

3 messages from 2010-05-01 to 2010-05-28. Participants: Steve Folly, Johannes Sixt, Uri Okrent.
Thread: https://gitlist.dev/t/23662

## Steve Folly, 2010-05-01 19:54

Subject: Revert hunk?
Message-ID: <loom.20100501T215211-11@post.gmane.org>
URL: https://gitlist.dev/e/loom.20100501T215211-11%40post.gmane.org

```
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, 2010-05-01 21:38

Subject: Re: Revert hunk?
Message-ID: <4BDC9F66.5090305@kdbg.org>
URL: https://gitlist.dev/e/4BDC9F66.5090305%40kdbg.org
In-Reply-To: <loom.20100501T215211-11@post.gmane.org>

```
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, 2010-05-28 04:17

Subject: Re: Revert hunk?
Message-ID: <AANLkTinPrO25SnneENN6ryofn5mZ0a4CxqXSnXBbP2xO@mail.gmail.com>
URL: https://gitlist.dev/e/AANLkTinPrO25SnneENN6ryofn5mZ0a4CxqXSnXBbP2xO%40mail.gmail.com
In-Reply-To: <loom.20100501T215211-11@post.gmane.org>

```
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/

```
