git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* How to remove a specific hunk
@ 2007-10-26 15:10 Pascal Obry
  2007-10-26 15:28 ` Andreas Ericsson
  2007-10-26 19:20 ` Alex Riesen
  0 siblings, 2 replies; 15+ messages in thread
From: Pascal Obry @ 2007-10-26 15:10 UTC (permalink / raw)
  To: git


Hello,

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 ?

I understand that I can git add interactive and select the hook I want
to commit, but this is not fully equivalent. I'm not yet ready to commit
I just want to undo a specific change and test the code without it...

Any idea ?

Thanks,
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

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2007-10-31 12:25 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-26 15:10 How to remove a specific hunk Pascal Obry
2007-10-26 15:28 ` Andreas Ericsson
2007-10-26 15:38   ` Pascal Obry
2007-10-26 17:03     ` Benoit SIGOURE
2007-10-26 18:19       ` Johannes Schindelin
2007-10-26 21:59     ` Olivier Ramonat
2007-10-26 16:42   ` Jeff King
2007-10-26 16:49     ` Jeff King
2007-10-29  7:03       ` Miles Bader
2007-10-26 19:20 ` Alex Riesen
2007-10-31 10:10   ` Benoit SIGOURE
2007-10-31 11:06     ` Johannes Schindelin
2007-10-31 11:56       ` Florian Weimer
2007-10-31 12:24         ` Pascal Obry
2007-10-31 12:00       ` Peter Baumann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).