mirror of
https://git.proxmox.com/git/libgit2
synced 2025-10-26 20:32:14 +00:00
Added `git_repository_submodule_cache_all` to initialze a cache of submodules on the repository so that operations looking up N submodules are O(N) and not O(N^2). Added a `git_repository_submodule_cache_clear` function to remove the cache. Also optimized the function that loads all submodules as it was itself O(N^2) w.r.t the number of submodules, having to loop through the `.gitmodules` file once per submodule. I changed it to process the `.gitmodules` file once, into a map. Signed-off-by: David Turner <dturner@twosigma.com> |
||
|---|---|---|
| .. | ||
| commit.h | ||
| config.h | ||
| diff.h | ||
| filter.h | ||
| hashsig.h | ||
| index.h | ||
| mempack.h | ||
| merge.h | ||
| odb_backend.h | ||
| openssl.h | ||
| refdb_backend.h | ||
| reflog.h | ||
| refs.h | ||
| remote.h | ||
| repository.h | ||
| stream.h | ||
| time.h | ||
| transport.h | ||