Re: [PATCH/RFC v2 08/16] Make in-memory format aware of stat_crc

2012-08-07 Thread Thomas Gummerer
On 08/05, Junio C Hamano wrote: > Thomas Gummerer writes: > > > + stat_crc = crc32(stat_crc, (Bytef*)&stat, 4); > > + stat = htonl(ce->ce_ino); > > + stat_crc = crc32(stat_crc, (Bytef*)&stat, 4); > > + stat = htonl(ce->ce_size); > > + stat_crc = crc32(stat_crc, (Bytef*)&stat, 4); > > +

Re: [PATCH/RFC v2 08/16] Make in-memory format aware of stat_crc

2012-08-05 Thread Junio C Hamano
Thomas Gummerer writes: > + stat_crc = crc32(stat_crc, (Bytef*)&stat, 4); > + stat = htonl(ce->ce_ino); > + stat_crc = crc32(stat_crc, (Bytef*)&stat, 4); > + stat = htonl(ce->ce_size); > + stat_crc = crc32(stat_crc, (Bytef*)&stat, 4); > + stat = htonl(ce->ce_dev); > +

[PATCH/RFC v2 08/16] Make in-memory format aware of stat_crc

2012-08-05 Thread Thomas Gummerer
Make the in-memory format aware of the stat_crc used by index-v5. It is simply ignored by index version prior to v5. Signed-off-by: Thomas Gummerer --- cache.h |1 + read-cache.c | 27 +++ 2 files changed, 28 insertions(+) diff --git a/cache.h b/cache.h index