diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2014-06-13 19:19:43 +0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-06-13 11:49:41 -0700 |
commit | b3c96fb158f05152336f167076f5d81d23c3a5e5 (patch) | |
tree | 53f31350a5ace53f533e64dc5c049699e1ebfb5a /cache.h | |
parent | ce7c614bceedf0c0169dd5b02cae3e33ee45acdd (diff) | |
download | git-b3c96fb158f05152336f167076f5d81d23c3a5e5.tar.gz git-b3c96fb158f05152336f167076f5d81d23c3a5e5.tar.xz |
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>
Diffstat (limited to 'cache.h')
-rw-r--r-- | cache.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -170,6 +170,7 @@ struct cache_entry { #define CE_MATCHED (1 << 26) #define CE_UPDATE_IN_BASE (1 << 27) +#define CE_STRIP_NAME (1 << 28) /* * Extended on-disk flags |