aboutsummaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2014-06-13 19:19:43 +0700
committerJunio C Hamano <gitster@pobox.com>2014-06-13 11:49:41 -0700
commitb3c96fb158f05152336f167076f5d81d23c3a5e5 (patch)
tree53f31350a5ace53f533e64dc5c049699e1ebfb5a /cache.h
parentce7c614bceedf0c0169dd5b02cae3e33ee45acdd (diff)
downloadgit-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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/cache.h b/cache.h
index 70fd8ed46..ddb7cd26d 100644
--- a/cache.h
+++ b/cache.h
@@ -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