git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: lists@haller-berlin.de (Stefan Haller)
To: git@vger.kernel.org
Subject: How to "revert hunk" in git gui?
Date: Thu, 2 Sep 2010 20:59:01 +0200	[thread overview]
Message-ID: <1jo7lrb.1oy1vn4mdqeedM%lists@haller-berlin.de> (raw)

I always use git gui to make commits, and I like the way you can stage
and unstage hunks easily.

Often, when looking at the unstaged changes I come across some piece of
debug code that I forgot to delete, and I can't seem to find an easy way
to revert this hunk.  As a workaround, I can stage the entire file,
unstage the hunk I want to revert, and then choose "Revert changes" from
the Commit menu (which reverts just the unstaged hunks); but that's a
bit inconvenient.

I feel that this is such a common operation that I must be missing
something.

Thanks,
   Stefan


-- 
Stefan Haller
Berlin, Germany
http://www.haller-berlin.de/

                 reply	other threads:[~2010-09-02 18:59 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1jo7lrb.1oy1vn4mdqeedM%lists@haller-berlin.de \
    --to=lists@haller-berlin.de \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).