From 65944566d8d3ae81d3dc3acb8c82944f5698ca5d Mon Sep 17 00:00:00 2001 From: Paul Cristian Sarbu Date: Wed, 15 Feb 2023 17:12:15 +0100 Subject: structure cleanup: move remote operations of GitRepo to other_tools... ...in order to not include unwanted dependencies in just proper. The new class extends the GitRepo class used for just's Git tree operations and gets used in all of just-mr's async maps. --- src/other_tools/root_maps/fpath_git_map.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/other_tools/root_maps/fpath_git_map.cpp') diff --git a/src/other_tools/root_maps/fpath_git_map.cpp b/src/other_tools/root_maps/fpath_git_map.cpp index 17605ddc..70aff153 100644 --- a/src/other_tools/root_maps/fpath_git_map.cpp +++ b/src/other_tools/root_maps/fpath_git_map.cpp @@ -37,7 +37,7 @@ auto CreateFilePathGitMap( fatal); }); // check if path is a part of a git repo - auto repo_root = GitRepo::GetRepoRootFromPath( + auto repo_root = GitRepoRemote::GetRepoRootFromPath( key, wrapped_logger); // static function if (not repo_root) { return; @@ -51,7 +51,8 @@ auto CreateFilePathGitMap( /*fatal=*/true); return; } - auto git_repo = GitRepo::Open(git_cas); // link fake repo to odb + auto git_repo = + GitRepoRemote::Open(git_cas); // link fake repo to odb if (not git_repo) { (*logger)(fmt::format("Could not open repository {}", repo_root->string()), @@ -81,7 +82,7 @@ auto CreateFilePathGitMap( return; } auto git_repo = - GitRepo::Open(git_cas); // link fake repo to odb + GitRepoRemote::Open(git_cas); // link fake repo to odb if (not git_repo) { (*logger)(fmt::format("Could not open repository {}", repo_root.string()), -- cgit v1.2.3