Name |
Last commit
|
Last update |
---|---|---|
.. | ||
add.c | ||
init.c | ||
lookup.c | ||
modify.c | ||
nosubs.c | ||
repository_init.c | ||
status.c | ||
submodule_helpers.c | ||
submodule_helpers.h | ||
update.c |
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>
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
add.c | Loading commit data... | |
init.c | Loading commit data... | |
lookup.c | Loading commit data... | |
modify.c | Loading commit data... | |
nosubs.c | Loading commit data... | |
repository_init.c | Loading commit data... | |
status.c | Loading commit data... | |
submodule_helpers.c | Loading commit data... | |
submodule_helpers.h | Loading commit data... | |
update.c | Loading commit data... |