From 102de880d24fe66a8916e7c984e5bf8db6be047c Mon Sep 17 00:00:00 2001 From: Stefan Beller Date: Thu, 17 May 2018 15:51:51 -0700 Subject: path.c: migrate global git_path_* to take a repository argument Migrate all git_path_* functions that are defined in path.c to take a repository argument. Unlike other patches in this series, do not use the #define trick, as we rewrite the whole function, which is rather small. This doesn't migrate all the functions, as other builtins have their own local path functions defined using GIT_PATH_FUNC. So keep that macro around to serve the other locations. Signed-off-by: Stefan Beller Signed-off-by: Junio C Hamano --- repository.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'repository.h') diff --git a/repository.h b/repository.h index 6d19981990..83f9ef1510 100644 --- a/repository.h +++ b/repository.h @@ -38,6 +38,11 @@ struct repository { /* The store in which the refs are held. */ struct ref_store *refs; + /* + * Contains path to often used file names. + */ + struct path_cache cached_paths; + /* * Path to the repository's graft file. * Cannot be NULL after initialization. -- cgit v1.2.3