Re: Reverting an uncommitted revert

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Nicolas Pitre <nico@xxxxxxx> writes:

>>  (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.
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]