]> git.ipfire.org Git - thirdparty/git.git/commit - cache.h
split-index: strip pathname of on-disk replaced entries
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Fri, 13 Jun 2014 12:19:43 +0000 (19:19 +0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 13 Jun 2014 18:49:41 +0000 (11:49 -0700)
commitb3c96fb158f05152336f167076f5d81d23c3a5e5
tree53f31350a5ace53f533e64dc5c049699e1ebfb5a
parentce7c614bceedf0c0169dd5b02cae3e33ee45acdd
split-index: strip pathname of on-disk replaced entries

We know the positions of replaced entries via the replace bitmap in
"link" extension, so the "name" path does not have to be stored (it's
still in the shared index). With this, we also have a way to
distinguish additions vs replacements at load time and can catch
broken "link" extensions.

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
cache.h
read-cache.c
split-index.c