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);
> > +
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);
> +
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
3 matches
Mail list logo