Re: Refreshing index timestamps without reading content

2017-01-10 Thread Quentin Casasnovas
On Mon, Jan 09, 2017 at 04:55:37PM +0100, Quentin Casasnovas wrote: > On Mon, Jan 09, 2017 at 07:01:36AM -0800, Junio C Hamano wrote: > > Duy Nguyen writes: > > > > > On Thu, Jan 5, 2017 at 6:23 PM, Quentin Casasnovas > > > wrote: > > >> Is there any way to tell git, after the git ls-tree command

Re: Refreshing index timestamps without reading content

2017-01-09 Thread Quentin Casasnovas
On Mon, Jan 09, 2017 at 07:01:36AM -0800, Junio C Hamano wrote: > Duy Nguyen writes: > > > On Thu, Jan 5, 2017 at 6:23 PM, Quentin Casasnovas > > wrote: > >> Is there any way to tell git, after the git ls-tree command above, to > >> refresh its stat cache information and trust us that the file co

Re: Refreshing index timestamps without reading content

2017-01-09 Thread Junio C Hamano
Duy Nguyen writes: > On Thu, Jan 5, 2017 at 6:23 PM, Quentin Casasnovas > wrote: >> Is there any way to tell git, after the git ls-tree command above, to >> refresh its stat cache information and trust us that the file content has >> not changed, as to avoid any useless file read (though it will

Re: Refreshing index timestamps without reading content

2017-01-09 Thread Quentin Casasnovas
On Mon, Jan 09, 2017 at 01:17:24PM +0100, Quentin Casasnovas wrote: > On Mon, Jan 09, 2017 at 07:02:45PM +0700, Duy Nguyen wrote: > > On Thu, Jan 5, 2017 at 6:23 PM, Quentin Casasnovas > > wrote: > > > > > If not, I am willing to implement a --assume-content-unchanged to the git > > > update-inde

Re: Refreshing index timestamps without reading content

2017-01-09 Thread Quentin Casasnovas
On Mon, Jan 09, 2017 at 07:02:45PM +0700, Duy Nguyen wrote: > On Thu, Jan 5, 2017 at 6:23 PM, Quentin Casasnovas > wrote: > > > If not, I am willing to implement a --assume-content-unchanged to the git > > update-index if you guys don't see something fundamentally wrong with this > > approach. >

Re: Refreshing index timestamps without reading content

2017-01-09 Thread Duy Nguyen
On Thu, Jan 5, 2017 at 6:23 PM, Quentin Casasnovas wrote: > Hi guys, > > Apologies if this is documented somewhere, I have fairly bad search vudu > skills. > > I'm looking for a way to cause a full refresh of the index without causing > any read of the files, basically telling git "trust me, all w

Refreshing index timestamps without reading content

2017-01-05 Thread Quentin Casasnovas
Hi guys, Apologies if this is documented somewhere, I have fairly bad search vudu skills. I'm looking for a way to cause a full refresh of the index without causing any read of the files, basically telling git "trust me, all worktree files are matching the index, but their stat information have c