diff options
-rw-r--r-- | src/attrcache.c | 2 | ||||
-rw-r--r-- | src/attrcache.h | 5 |
2 files changed, 2 insertions, 5 deletions
diff --git a/src/attrcache.c b/src/attrcache.c index 1812376ea..4df14ee2c 100644 --- a/src/attrcache.c +++ b/src/attrcache.c @@ -354,7 +354,7 @@ static void attr_cache__free(git_attr_cache *cache) git__free(cache); } -int git_attr_cache__do_init(git_repository *repo) +int git_attr_cache__init(git_repository *repo) { int ret = 0; git_attr_cache *cache = git_repository_attr_cache(repo); diff --git a/src/attrcache.h b/src/attrcache.h index 44e1ffdce..b91edd3e8 100644 --- a/src/attrcache.h +++ b/src/attrcache.h @@ -22,10 +22,7 @@ typedef struct { git_pool pool; } git_attr_cache; -extern int git_attr_cache__do_init(git_repository *repo); - -#define git_attr_cache__init(REPO) \ - (git_repository_attr_cache(REPO) ? 0 : git_attr_cache__do_init(REPO)) +extern int git_attr_cache__init(git_repository *repo); /* get file - loading and reload as needed */ extern int git_attr_cache__get( |