From: Junio C Hamano Date: Sat, 11 Feb 2006 05:18:23 GMT Subject: Re: Resetting paths Message-ID: <7vpslupj6o.fsf@assigned-by-dhcp.cox.net> In-Reply-To: <43EC7CB0.5040804@op5.se> Andreas Ericsson writes: > How about "git update-index --undo path...", possibly with "git reset > path..." as a shorthand. While "git reset path..." may make sense, "update-index --undo" does not make any sense from the core point of view. That command is about interaction between index and working tree file and does not know anything about "the last commit", "the current head commit", nor tree objects in general, so it does not know where to get the undo information from. I'll find time to code a prototype for "git reset path..." up unless somebody beats me to it.