From 8b35029c6bfe142234aa33a99727641a80625de9 Mon Sep 17 00:00:00 2001 From: Henrique Ferreiro Date: Sat, 9 May 2020 01:24:47 +0000 Subject: [PATCH] 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 Reviewed-by: Aaron Gable Commit-Queue: Henrique Ferreiro --- git_cl_completion.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git_cl_completion.sh b/git_cl_completion.sh index 54079ccdb..93677f4b6 100755 --- a/git_cl_completion.sh +++ b/git_cl_completion.sh @@ -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)" }