• B
    submodule: refactor logic to determine changed submodules · aacc5c1a
    Brandon Williams 提交于
    There are currently two instances (fetch and push) where we want to
    determine if submodules have changed given some revision specification.
    These two instances don't use the same logic to generate a list of
    changed submodules and as a result there is a fair amount of code
    duplication.
    
    This patch refactors these two code paths such that they both use the
    same logic to generate a list of changed submodules.  This also makes it
    easier for future callers to be able to reuse this logic as they only
    need to create an argv_array with the revision specification to be using
    during the revision walk.
    Signed-off-by: NBrandon Williams <bmwill@google.com>
    Signed-off-by: NJunio C Hamano <gitster@pobox.com>
    aacc5c1a
submodule.c 51.1 KB