From: Benoit SIGOURE Date: Wed, 31 Oct 2007 10:10:34 GMT Subject: Re: How to remove a specific hunk Message-ID: <13D08D3F-3647-4E20-AF80-8EC6FD14E66A@lrde.epita.fr> In-Reply-To: <20071026192034.GA3062@steel.home> On Oct 26, 2007, at 9:20 PM, Alex Riesen wrote: > Pascal Obry, Fri, Oct 26, 2007 17:10:38 +0200: >> >> I'm very new to Git... but start to love it :) >> >> Before committing sometimes I want to remove a specific hunk. Say in >> file a.txt I have in the diff 3 hunks, I want to revert/delete/remove >> the second one. Is there a way to do that ? > > Take a look at git-gui. Try right-clicking in the diff pane at the > bottom. This only allows you to stage a given hunk, not to remove one. Right now I'm in a situation where I need to remove a specific hunk to compile and it's sad that git-gui doesn't provide an option so that you can right-click -> revert hunk. -- Benoit Sigoure aka Tsuna EPITA Research and Development Laboratory