summaryrefslogtreecommitdiff
path: root/gitk-git
diff options
context:
space:
mode:
authorLibravatar SZEDER Gábor <szeder@ira.uka.de>2015-05-01 17:48:56 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2015-05-03 11:44:49 -0700
commit110062a134450f402f6d2e3e78a5aabb1df821fa (patch)
tree4e4e517dceebd60b49eb7a9d082208a7e4f9c57f /gitk-git
parentGit 2.4 (diff)
downloadtgif-110062a134450f402f6d2e3e78a5aabb1df821fa.tar.xz
completion: remove redundant __git_compute_all_commands() call
During lazy-initialization of the lists of all commands and porcelain commands the function __git_compute_all_commands() is called twice. The relevant part of the call sequence looks like this: __git_compute_porcelain_commands() __git_compute_all_commands() <finds list of all commands uninitialized> __git_list_all_commands() <initializes list of all commands> __git_list_porcelain_commands() __git_compute_all_commands() <finds list of all commands already initialized, does nothing> <filters porcelains from list of all commands> Either one of the two calls could be removed and the initialization of both command lists would still work as a whole, but let's remove the call from __git_compute_porcelain_commands(), because this way __git_list_porcelain_commands() will keep working in itself. Signed-off-by: SZEDER Gábor <szeder@ira.uka.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'gitk-git')
0 files changed, 0 insertions, 0 deletions