From d00d54645d931c77a9b401518c0d73e3f640454b Mon Sep 17 00:00:00 2001 From: Edward Thomson Date: Fri, 1 Mar 2013 15:37:33 -0600 Subject: immutable references and a pluggable ref database --- src/repository.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/repository.h') diff --git a/src/repository.h b/src/repository.h index f19758fe4..ebd797cc1 100644 --- a/src/repository.h +++ b/src/repository.h @@ -21,6 +21,7 @@ #include "object.h" #include "attr.h" #include "strmap.h" +#include "refdb.h" #define DOT_GIT ".git" #define GIT_DIR DOT_GIT "/" @@ -79,11 +80,11 @@ enum { /** Internal structure for repository object */ struct git_repository { git_odb *_odb; + git_refdb *_refdb; git_config *_config; git_index *_index; git_cache objects; - git_refcache references; git_attr_cache attrcache; git_strmap *submodules; @@ -112,6 +113,7 @@ int git_repository_head_tree(git_tree **tree, git_repository *repo); */ int git_repository_config__weakptr(git_config **out, git_repository *repo); int git_repository_odb__weakptr(git_odb **out, git_repository *repo); +int git_repository_refdb__weakptr(git_refdb **out, git_repository *repo); int git_repository_index__weakptr(git_index **out, git_repository *repo); /* -- cgit v1.2.3