Thread (1 message) 1 message, 1 author, 2016-06-15

Re: Reverting an uncommitted revert

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:46:48

Nicolas Pitre [off-list ref] writes:
quoted
 (1) When would you "auto" write-tree?  When you do "git add" or anything
     that adds new contents to the index?  Or immediately before you do
     something destructive like "git reset"?  Or perhaps both?
Delaying any IO until it is clear that something is to be discarded is 
the best approach performance wise.  So perhaps not on the first 'git 
add' but certainly on the second one with an already cached path for 
which new (different) content is going to replace previous content.
I hope that you are not forgetting that it costs cycles to determine "it
is clear that something is to be discarded".

The "diff-index --cached" optimization I did today may help, as it would
allow you to check with the last trash-log more cheaply, but it certainly
is not free.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help