From: Junio C Hamano Date: Tue, 18 Dec 2012 21:34:38 GMT Subject: Re: Feature suggestion: new 'git add -i' command to discard working copy changes Message-ID: <7vvcbzdoy9.fsf@alter.siamese.dyndns.org> In-Reply-To: <50D0DA19.5030606@cs.wisc.edu> Evan Driscoll writes: > 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. Hrm, not really. "git add" is about manipulating the index and its promise is that it won't touch working tree files. And people rely on that promise. I can see how it would be useful to have a UI that is more interactive than CLI that shows you a list of paths and lets you pick from the list to run "git checkout" on, but I think "git add" is a bad match to it.