summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2014-01-10 10:33:47 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2014-01-10 10:33:48 -0800
commit74ca49330a02d66a47be53e91bf3fa8577ddb946 (patch)
tree2181c9b8a26f9a36e59f30129ae25519eab2104f /Documentation
parentMerge branch 'vm/octopus-merge-bases-simplify' (diff)
parentbuiltin/help.c: speed up is_git_command() by checking for builtin commands first (diff)
downloadtgif-74ca49330a02d66a47be53e91bf3fa8577ddb946.tar.xz
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"
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/technical/api-builtin.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/Documentation/technical/api-builtin.txt b/Documentation/technical/api-builtin.txt
index f3c1357b7c..e3d6e7a79a 100644
--- a/Documentation/technical/api-builtin.txt
+++ b/Documentation/technical/api-builtin.txt
@@ -14,8 +14,8 @@ Git:
. Add the external declaration for the function to `builtin.h`.
-. Add the command to `commands[]` table in `handle_internal_command()`,
- defined in `git.c`. The entry should look like:
+. Add the command to the `commands[]` table defined in `git.c`.
+ The entry should look like:
{ "foo", cmd_foo, <options> },
+