From: Junio C Hamano Date: Tue, 3 Apr 2012 22:53:15 +0000 (-0700) Subject: read-cache.c: read prefix-compressed names in index on-disk version v4 X-Git-Tag: v1.7.11-rc0~76^2~4 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/6c9cd161d9d1bee349b1389d661282c92da098bc?hp=6c9cd161d9d1bee349b1389d661282c92da098bc read-cache.c: read prefix-compressed names in index on-disk version v4 Because the entries are sorted by path, adjacent entries in the index tend to share the leading components of them, and it makes sense to only store the differences in later entries. In the v4 on-disk format of the index, each on-disk cache entry stores the number of bytes to be stripped from the end of the previous name, and the bytes to append to the result, to come up with its name. Signed-off-by: Junio C Hamano ---