summaryrefslogtreecommitdiff
path: root/src/attr.h
diff options
context:
space:
mode:
authorRussell Belfer <rb@github.com>2012-04-17 15:12:50 -0700
committerRussell Belfer <rb@github.com>2012-04-25 10:42:37 -0700
commit19fa2bc111d50dc2bafb1393b87b5ba119615ae2 (patch)
tree103a62cf49834958b18562f411abd18b2a438ce6 /src/attr.h
parent2bc8fa0227d549006a9870620ca1f2e08a0c305e (diff)
downloadlibgit2-19fa2bc111d50dc2bafb1393b87b5ba119615ae2.tar.gz
Convert attrs and diffs to use string pools
This converts the git attr related code (including ignores) and the git diff related code (and implicitly the status code) to use `git_pools` for storing strings. This reduces the number of small blocks allocated dramatically.
Diffstat (limited to 'src/attr.h')
-rw-r--r--src/attr.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/attr.h b/src/attr.h
index 350c0ebad..825cbfe4e 100644
--- a/src/attr.h
+++ b/src/attr.h
@@ -14,6 +14,7 @@
typedef struct {
int initialized;
+ git_pool pool;
git_hashtable *files; /* hash path to git_attr_file of rules */
git_hashtable *macros; /* hash name to vector<git_attr_assignment> */
const char *cfg_attr_file; /* cached value of core.attributesfile */