read-cache.c: write prefix-compressed names in the index
commit9d227781b688707f64ee1703a1156b0c83247c33
authorJunio C Hamano <gitster@pobox.com>
Wed, 4 Apr 2012 16:12:43 +0000 (4 09:12 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 4 Apr 2012 16:57:49 +0000 (4 09:57 -0700)
tree2a63a30693e7cbcc6983b5bd6f650a297e05addc
parent6c9cd161d9d1bee349b1389d661282c92da098bc
read-cache.c: write prefix-compressed names in the index

Teach the code to write the index in the v4 on-disk format.

Record the format version of the on-disk index we read from in the
index_state, and use the format when writing the new index out.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
cache.h
read-cache.c