Re: How to remove a specific hunk
- From
Pascal Obry <pascal.obry@wanadoo.fr>
- Date
- Oct 26, 2007, 15:38 UTC
- Message-ID
- <47220A05.4040705@wanadoo.fr>
- In-Reply-To
- <472207AA.8030100@op5.se>
Andreas,
Show 8 quoted lines
> Once you've added the other two hunks, they'll no longer show up in > git-diff, so you can do something like this: > > $ git-add -i; # add the other two hunks to commit > $ git-diff > middle-hunk.patch > $ git-apply -R middle-hunk.patch > test, test, test > $ git-apply middle-hunk.patch
Thanks, this will clearly work. I was expecting something more integrated like a "git reset --interactive" or something like that :)
Pascal.
-- --|------------------------------------------------------ --| Pascal Obry Team-Ada Member --| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE --|------------------------------------------------------ --| http://www.obry.net --| "The best way to travel is by means of imagination" --| --| gpg --keyserver wwwkeys.pgp.net --recv-key C1082595