diff options
author | Russell Belfer <rb@github.com> | 2012-03-30 14:40:50 -0700 |
---|---|---|
committer | Russell Belfer <rb@github.com> | 2012-03-30 14:40:50 -0700 |
commit | 95dfb031f70601b12a9eb57229fd4aa9a51ddd54 (patch) | |
tree | 1413fc2f40bdc3e1af6c5ff16f5550de142e6bf3 /src/attr.h | |
parent | bfc9ca595aa2f189743f2a7b9812f05def78ec88 (diff) | |
download | libgit2-95dfb031f70601b12a9eb57229fd4aa9a51ddd54.tar.gz |
Improve config handling for diff,submodules,attrs
This adds support for a bunch of core.* settings that affect
diff and status, plus fixes up some incorrect implementations
of those settings from before. Also, this cleans up the
handling of config settings in the new submodules code and
in the old attrs/ignore code.
Diffstat (limited to 'src/attr.h')
-rw-r--r-- | src/attr.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/attr.h b/src/attr.h index eccda0ed7..350c0ebad 100644 --- a/src/attr.h +++ b/src/attr.h @@ -9,10 +9,15 @@ #include "attr_file.h" +#define GIT_ATTR_CONFIG "core.attributesfile" +#define GIT_IGNORE_CONFIG "core.excludesfile" + typedef struct { int initialized; 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 */ + const char *cfg_excl_file; /* cached value of core.excludesfile */ } git_attr_cache; extern int git_attr_cache__init(git_repository *repo); |