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

1  2 
contrib/completion/git-completion.bash
index eae9dce590e0000eb93e441106ef6538c07e86cc,8b0d2b4a3d4359395eb3a46b573c90533fd8c6fd..b28a14e8ca583e18d91e5eae0186a4ad352ad8fe
@@@ -735,7 -735,6 +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)
  }
@@@ -1448,7 -1447,7 +1447,7 @@@ _git_log (
                return
                ;;
        --decorate=*)
 -              __gitcomp "long short" "" "${cur##--decorate=}"
 +              __gitcomp "full short no" "" "${cur##--decorate=}"
                return
                ;;
        --*)