diff options
author | Brandon Williams <bmwill@google.com> | 2017-05-01 18:02:39 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-05-02 10:45:11 +0900 |
commit | aacc5c1a81c004efccff8075edb78acdf5f15264 (patch) | |
tree | ae258f71e0bfdda8ed898158b4c52f85a2594b7c /bisect.c | |
parent | 7c8d2b00f2516a0b30aaa3f59dceaf4fe83f8729 (diff) | |
download | git-bw/submodule-has-commits-update.tar.gz |
submodule: refactor logic to determine changed submodulesbw/submodule-has-commits-update
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: Brandon Williams <bmwill@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'bisect.c')
0 files changed, 0 insertions, 0 deletions