[PATCH v1 1/5] dir: make lookup_untracked() available outside of dir.c
- From
Ben Peart <peartben@gmail.com>
- Date
- May 15, 2017, 19:13 UTC
- Message-ID
- <20170515191347.1892-2-benpeart@microsoft.com>
- In-Reply-To
- <20170515191347.1892-1-benpeart@microsoft.com>
Remove the static qualifier from lookup_untracked() and make it available to other modules by exporting it from dir.h.
Signed-off-by: Ben Peart <benpeart@microsoft.com> --- dir.c | 2 +- dir.h | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/dir.c b/dir.c index f451bfa48c..1b5558fdf9 100644 --- a/dir.c +++ b/dir.c @@ -660,7 +660,7 @@ static void trim_trailing_spaces(char *buf) * * If "name" has the trailing slash, it'll be excluded in the search. */ -static struct untracked_cache_dir *lookup_untracked(struct untracked_cache *uc, +struct untracked_cache_dir *lookup_untracked(struct untracked_cache *uc, struct untracked_cache_dir *dir, const char *name, int len) { diff --git a/dir.h b/dir.h index bf23a470af..9e387551bd 100644 --- a/dir.h +++ b/dir.h @@ -339,4 +339,7 @@ extern void connect_work_tree_and_git_dir(const char *work_tree, const char *git extern void relocate_gitdir(const char *path, const char *old_git_dir, const char *new_git_dir); +struct untracked_cache_dir *lookup_untracked(struct untracked_cache *uc, + struct untracked_cache_dir *dir, + const char *name, int len); #endif
-- 2.13.0.windows.1.6.g4597375fc3