mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-05 20:33:41 +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> |
||
---|---|---|
.. | ||
add.c | ||
init.c | ||
lookup.c | ||
modify.c | ||
nosubs.c | ||
repository_init.c | ||
status.c | ||
submodule_helpers.c | ||
submodule_helpers.h | ||
update.c |