summaryrefslogtreecommitdiff
path: root/include/git2/diff.h
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2015-04-27 19:27:29 +0200
committerCarlos Martín Nieto <cmn@dwim.me>2015-06-22 17:02:54 +0200
commitdfda2f68ea9602a6b0d08e36bd48e6a4899b12ff (patch)
tree55154c8535a53866661e94e5ec9a335d09698d38 /include/git2/diff.h
parent0c94deb90f1ce0e8caf171c85522c66ceb37a4ab (diff)
downloadlibgit2-dfda2f68ea9602a6b0d08e36bd48e6a4899b12ff.tar.gz
submodule: remove the per-repo cache
Having this cache and giving them out goes against our multithreading guarantees and it makes it impossible to use submodules in a multi-threaded environment, as any thread can ask for a refresh which may reallocate some string in the submodule struct which we've accessed in a different one via a getter. This makes the submodules behave more like remotes, where each object is created upon request and not shared except explicitly by the user. This means that some tests won't pass yet, as they assume they can affect the submodule objects in the cache and that will affect later operations.
Diffstat (limited to 'include/git2/diff.h')
0 files changed, 0 insertions, 0 deletions