summaryrefslogtreecommitdiff
path: root/git-gui/lib/tools.tcl
diff options
context:
space:
mode:
authorLibravatar Brandon Williams <bmwill@google.com>2017-05-01 18:02:39 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2017-05-02 10:45:11 +0900
commitaacc5c1a81c004efccff8075edb78acdf5f15264 (patch)
treeae258f71e0bfdda8ed898158b4c52f85a2594b7c /git-gui/lib/tools.tcl
parentsubmodule: improve submodule_has_commits() (diff)
downloadtgif-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