Merge branch 'sg/completion-no-redundant-all-command-list'
authorJunio C Hamano <gitster@pobox.com>
Mon, 11 May 2015 21:23:57 +0000 (14:23 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 11 May 2015 21:23:57 +0000 (14:23 -0700)
Code simplification.

* sg/completion-no-redundant-all-command-list:
completion: remove redundant __git_compute_all_commands() call

contrib/completion/git-completion.bash
index eae9dce590e0000eb93e441106ef6538c07e86cc..b28a14e8ca583e18d91e5eae0186a4ad352ad8fe 100644 (file)
@@ -735,7 +735,6 @@ __git_list_porcelain_commands ()
 __git_porcelain_commands=
 __git_compute_porcelain_commands ()
 {
-       __git_compute_all_commands
        test -n "$__git_porcelain_commands" ||
        __git_porcelain_commands=$(__git_list_porcelain_commands)
 }