aboutsummaryrefslogtreecommitdiff
path: root/attr.h
diff options
context:
space:
mode:
authorBrandon Williams <bmwill@google.com>2017-01-27 18:02:01 -0800
committerJunio C Hamano <gitster@pobox.com>2017-02-01 13:46:53 -0800
commit1a600b7555205f80b276659db4fd521658642505 (patch)
tree7cce47514bdbb976ab4844c2a8efd9296c3ac37c /attr.h
parent428103c7f1a0cb8bb1432214efa60abc5bd5f198 (diff)
downloadgit-1a600b7555205f80b276659db4fd521658642505.tar.gz
git-1a600b7555205f80b276659db4fd521658642505.tar.xz
attr: use hashmap for attribute dictionary
The current implementation of the attribute dictionary uses a custom hashtable. This modernizes the dictionary by converting it to the builtin 'hashmap' structure. Also, in order to enable a threaded API in the future add an accompanying mutex which must be acquired prior to accessing the dictionary of interned attributes. Signed-off-by: Brandon Williams <bmwill@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'attr.h')
-rw-r--r--attr.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/attr.h b/attr.h
index b2cfd8550..898e1a8c9 100644
--- a/attr.h
+++ b/attr.h
@@ -67,4 +67,6 @@ enum git_attr_direction {
};
void git_attr_set_direction(enum git_attr_direction, struct index_state *);
+extern void attr_start(void);
+
#endif /* ATTR_H */