Thread (26 messages) flat view 26 messages, 12 authors, 2016-06-15

Re: 'commit -a' safety

From: Mike Hommey <hidden>
Date: 2016-06-15 22:48:42

Possibly related (same subject, not in this thread)

On Sat, Apr 24, 2010 at 10:28:48AM -0400, Joey Hess wrote:
Jakub Narebski wrote:
quoted
What you cant recover by undoing commit is the state of index before
accidental 'git commit -a' instead of 'git commit'.
Has a reflog equivilant for the index, to allow resetting it to a
previous state, ever been discussed? 

I don't grok its data structure -- could that be done efficiently?
Updating the index creates blobs, so the file states are definitely
already kept. What is missing is trees that could be referred to by a
log.

Mike
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help