Thread (1 message) 1 message, 1 author, 2016-06-15
  • (off-list ancestor, not in this archive)
  • Re: Resetting paths · Junio C Hamano <hidden> · 2016-06-15

Re: Resetting paths

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:42:18

Andreas Ericsson [off-list ref] 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.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help