summaryrefslogtreecommitdiff
path: root/test/buildtool/file_system/git_repo.test.cpp
diff options
context:
space:
mode:
authorPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2024-04-05 11:48:13 +0200
committerPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2024-04-10 14:06:21 +0200
commit4fe5fc8aec6e391a5e300e234bdc41375bff1d9e (patch)
treed5eb3cb68f5d44fc89f885667cf6242b0d137a99 /test/buildtool/file_system/git_repo.test.cpp
parent43ac36b4cd2b6aa0b42219f5920a7b4e72832ae5 (diff)
downloadjustbuild-4fe5fc8aec6e391a5e300e234bdc41375bff1d9e.tar.gz
resolve_symlinks_map: Allow separate source and target repositories
In certain cases, e.g., on the serve endpoint, an unresolved tree might lie in a repository other than the Git cache, therefore we cannot create any new entries there, as it would violate our guarantee that we only write under our local build root. Therefore, the resolve_symlinks_map now receives pointers to both the source and target Git databases and ensures that: 1. any tree created on-the-fly is stored exclusively in the target repository, and 2. any other entry required for those trees is made available in the target repository by copying it from the source repository. Note that in our use case the target repository is always our Git cache and passing a pointer to that object database is done to avoid the overhead of otherwise opening the database very often.
Diffstat (limited to 'test/buildtool/file_system/git_repo.test.cpp')
0 files changed, 0 insertions, 0 deletions