diff options
author | Russell Belfer <arrbee@arrbee.com> | 2011-12-16 22:56:43 +0400 |
---|---|---|
committer | Russell Belfer <arrbee@arrbee.com> | 2011-12-21 04:32:58 +0400 |
commit | ee1f0b1aed7798908d9e038b006b66f868613fc3 (patch) | |
tree | c60350029b9e4bb14811ac13caf59ad86424f33e /src/repository.h | |
parent | be00b00dd1468f1c625ca3fadc61f2a16edfb8d5 (diff) |
Add APIs for git attributes
This adds APIs for querying git attributes. In addition to
the new API in include/git2/attr.h, most of the action is in
src/attr_file.[hc] which contains utilities for dealing with
a single attributes file, and src/attr.[hc] which contains
the implementation of the APIs that merge all applicable
attributes files.
Diffstat (limited to 'src/repository.h')
-rw-r--r-- | src/repository.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/repository.h b/src/repository.h index c3a9a5c60..5274fc1d0 100644 --- a/src/repository.h +++ b/src/repository.h @@ -19,6 +19,7 @@ #include "refs.h" #include "buffer.h" #include "odb.h" +#include "attr.h" #define DOT_GIT ".git" #define GIT_DIR DOT_GIT "/" @@ -38,6 +39,7 @@ struct git_repository { git_cache objects; git_refcache references; + git_attr_cache attrcache; char *path_repository; char *workdir; |