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 /git-gui/lib/tools.tcl | |
parent | submodule: improve submodule_has_commits() (diff) | |
download | tgif-aacc5c1a81c004efccff8075edb78acdf5f15264.tar.xz |
submodule: refactor logic to determine changed submodules
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 'git-gui/lib/tools.tcl')
0 files changed, 0 insertions, 0 deletions