summaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2015-03-08 10:12:33 (GMT)
committerJunio C Hamano <gitster@pobox.com>2015-03-12 20:45:16 (GMT)
commit83c094ad0dd2104adbbec034f802dceb1d052981 (patch)
treec4c552a928095b0af884c901504e820a62710cb7 /cache.h
parentbe0d9d532326a81d761913e3ec9e2e7c62eeca7b (diff)
downloadgit-83c094ad0dd2104adbbec034f802dceb1d052981.zip
git-83c094ad0dd2104adbbec034f802dceb1d052981.tar.gz
git-83c094ad0dd2104adbbec034f802dceb1d052981.tar.bz2
untracked cache: save to an index extension
Helped-by: Stefan Beller <sbeller@google.com> 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.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/cache.h b/cache.h
index 761c570..811cc36 100644
--- a/cache.h
+++ b/cache.h
@@ -291,6 +291,8 @@ static inline unsigned int canon_mode(unsigned int mode)
#define SPLIT_INDEX_ORDERED (1 << 6)
struct split_index;
+struct untracked_cache;
+
struct index_state {
struct cache_entry **cache;
unsigned int version;
@@ -304,6 +306,7 @@ struct index_state {
struct hashmap name_hash;
struct hashmap dir_hash;
unsigned char sha1[20];
+ struct untracked_cache *untracked;
};
extern struct index_state the_index;