Use cached variable for git cl completion

__git_cl_all_commands is used to cache the result of
__git_cl_commands(), but the actual code wasn't using it and was calling
the function everytime instead.

Change-Id: Ia2ce32b7de2812349808ec9aceeacf5adf463700
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/2190337
Reviewed-by: Andrii Shyshkalov <tandrii@google.com>
Reviewed-by: Aaron Gable <agable@chromium.org>
Commit-Queue: Henrique Ferreiro <hferreiro@igalia.com>
changes/37/2190337/2
Henrique Ferreiro 5 years ago committed by LUCI CQ
parent 64dab2dbab
commit 8b35029c6b

@ -30,5 +30,5 @@ __git_cl_compute_all_commands () {
_git_cl () {
__git_cl_compute_all_commands
__gitcomp_nl "$(__git_cl_commands)"
__gitcomp_nl "$(__git_cl_all_commands)"
}

Loading…
Cancel
Save