Merge branch 'ss/builtin-cleanup'
commit74ca49330a02d66a47be53e91bf3fa8577ddb946
authorJunio C Hamano <gitster@pobox.com>
Fri, 10 Jan 2014 18:33:47 +0000 (10 10:33 -0800)
committerJunio C Hamano <gitster@pobox.com>
Fri, 10 Jan 2014 18:33:48 +0000 (10 10:33 -0800)
tree2181c9b8a26f9a36e59f30129ae25519eab2104f
parent4243b2d1e45a8d0d9b1ccc9d860235e7b9543a7f
parentc6127fa3e25551e969d775b0332d37dc84db1969
Merge branch 'ss/builtin-cleanup'

"git help $cmd" unnecessarily enumerated potential command names
from the filesystem, even when $cmd is known to be a built-in.

Ideas for further optimization, primarily by killing the use of
is_in_cmdlist(), were suggested in the discussion, but they can
come as follow-ups on top of this series.

* ss/builtin-cleanup:
  builtin/help.c: speed up is_git_command() by checking for builtin commands first
  builtin/help.c: call load_command_list() only when it is needed
  git.c: consistently use the term "builtin" instead of "internal command"