git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Evan Driscoll <driscoll@cs.wisc.edu>
To: git@vger.kernel.org
Subject: Feature suggestion: new 'git add -i' command to discard working copy changes
Date: Tue, 18 Dec 2012 15:03:21 -0600	[thread overview]
Message-ID: <50D0DA19.5030606@cs.wisc.edu> (raw)

[-- Attachment #1: Type: text/plain, Size: 460 bytes --]

It's not infrequent that I want to discard changes I've made locally to
files ('git checkout file.txt') and find myself wishing that this was an
action available from the 'git add --interactive' UI; it feels like it
would fit in.

Does this sound like it would be useful? I might even be able to try my
hand at adding it if it seems like something that might be accepted
upstream and someone can point me at the places in the code to look.

Evan



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 554 bytes --]

             reply	other threads:[~2012-12-18 21:12 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-18 21:03 Evan Driscoll [this message]
2012-12-18 21:34 ` Feature suggestion: new 'git add -i' command to discard working copy changes Junio C Hamano
2012-12-18 21:59   ` Jeff King
2012-12-18 22:10     ` Evan Driscoll
2012-12-18 22:20       ` Jeff King

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=50D0DA19.5030606@cs.wisc.edu \
    --to=driscoll@cs.wisc.edu \
    --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).