Re: [PATCH 2/4] add a stat_validity struct

2013-05-15 Thread Jeff King
On Mon, May 13, 2013 at 04:29:34AM +0200, Michael Haggerty wrote: > > This patch introduces a "stat_validity" struct which > > encapsulates the concept of checking the stat-freshness of a > > file. It is implemented on top of "struct cache_entry" to > > reuse the logic about which stat entries to

Re: [PATCH 2/4] add a stat_validity struct

2013-05-12 Thread Michael Haggerty
On 05/07/2013 04:39 AM, Jeff King wrote: > It can sometimes be useful to know whether a path in the > filesystem has been updated without going to the work of > opening and re-reading its content. We trust the stat() > information on disk already to handle index updates, and we > can use the same t

[PATCH 2/4] add a stat_validity struct

2013-05-06 Thread Jeff King
It can sometimes be useful to know whether a path in the filesystem has been updated without going to the work of opening and re-reading its content. We trust the stat() information on disk already to handle index updates, and we can use the same trick here. This patch introduces a "stat_validity"