{"thread":{"id":"24951","subject":"How to \"revert hunk\" in git gui?","startedAt":"2010-09-02T18:59:01Z","lastAt":"2010-09-02T18:59:01Z","messageCount":1,"participants":["Stefan Haller"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"149670","messageId":"1jo7lrb.1oy1vn4mdqeedM%lists@haller-berlin.de","threadId":"24951","inReplyTo":null,"subject":"How to \"revert hunk\" in git gui?","fromName":"Stefan Haller","fromEmail":"lists@haller-berlin.de","sentAt":"2010-09-02T18:59:01Z","receivedAt":"2010-09-02T18:59:01Z","isPatch":false,"sender":{"key":"lists@haller-berlin.de","avatar":null},"body":"I always use git gui to make commits, and I like the way you can stage\nand unstage hunks easily.\n\nOften, when looking at the unstaged changes I come across some piece of\ndebug code that I forgot to delete, and I can't seem to find an easy way\nto revert this hunk.  As a workaround, I can stage the entire file,\nunstage the hunk I want to revert, and then choose \"Revert changes\" from\nthe Commit menu (which reverts just the unstaged hunks); but that's a\nbit inconvenient.\n\nI feel that this is such a common operation that I must be missing\nsomething.\n\nThanks,\n   Stefan\n\n\n-- \nStefan Haller\nBerlin, Germany\nhttp://www.haller-berlin.de/\n"}]}