On 08/02, Brandon Williams wrote:
On 07/31, Stefan Beller wrote:
quoted
So this is where the check "pos < active_nr" is coming from,
introduced in 5fee995244 (submodule.c: add .gitmodules staging
helper functions, 2013-07-30) as well as d4e98b581b (Submodules:
Don't parse .gitmodules when it contains, merge conflicts, 2011-05-14).
If I am reading the docs for cache_name_pos correctly, we would
not need to check for the index exceeding active_cache,
but checking for the index not being out of bounds seems
to be wide spread.
I can drop the pos < active_nr requirement.
From our conversation offline i'll leave this just in case there is some
subtle reason why it exists. Also makes it more of a 1:1 conversion.
--
Brandon Williams