Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRussell Belfer <rb@github.com>2012-03-31 01:40:50 +0400
committerRussell Belfer <rb@github.com>2012-03-31 01:40:50 +0400
commit95dfb031f70601b12a9eb57229fd4aa9a51ddd54 (patch)
tree1413fc2f40bdc3e1af6c5ff16f5550de142e6bf3 /src/attr.h
parentbfc9ca595aa2f189743f2a7b9812f05def78ec88 (diff)
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.h5
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);