git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Resetting paths

From
Junio C Hamano <junkio@cox.net>
Date
Feb 11, 2006, 05:18 UTC
Message-ID
<7vpslupj6o.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<43EC7CB0.5040804@op5.se>
Andreas Ericsson <ae@op5.se> 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.

Previous: Andreas Ericsson
Message 3 of 3 in “Resetting paths”
  1. Junio C HamanoFeb 10, 2006
  2. Andreas EricssonFeb 10, 2006
  3. Junio C HamanoFeb 11, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.