git.c: consistently use the term "builtin" instead of "internal command"

Signed-off-by: Sebastian Schuberth <sschuberth@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Sebastian Schuberth committed Jan 2, 2014 at 17:15 UTC 3f784a4dcbe270a1f48b23177917a1832a777d1c
2 files changed +8 -8
Documentation/technical/api-builtin.txt
+1 -1
@@ -14,7 +14,7 @@ Git:
14
15 . Add the external declaration for the function to `builtin.h`.
16
17 -. Add the command to `commands[]` table in `handle_internal_command()`,
17 +. Add the command to `commands[]` table in `handle_builtin()`,
18 defined in `git.c`. The entry should look like:
19
20 { "foo", cmd_foo, <options> },
git.c
+7 -7
@@ -332,7 +332,7 @@ static int run_builtin(struct cmd_struct *p, int argc, const char **argv)
332 return 0;
333 }
334
335 -static void handle_internal_command(int argc, const char **argv)
335 +static void handle_builtin(int argc, const char **argv)
336 {
337 const char *cmd = argv[0];
338 static struct cmd_struct commands[] = {
@@ -517,8 +517,8 @@ static int run_argv(int *argcp, const char ***argv)
517 int done_alias = 0;
518
519 while (1) {
520 - /* See if it's an internal command */
521 - handle_internal_command(*argcp, *argv);
520 + /* See if it's a builtin */
521 + handle_builtin(*argcp, *argv);
522
523 /* .. then try the external ones */
524 execv_dashed_external(*argv);
@@ -563,14 +563,14 @@ int main(int argc, char **av)
563 * - cannot execute it externally (since it would just do
564 * the same thing over again)
565 *
566 - * So we just directly call the internal command handler, and
567 - * die if that one cannot handle it.
566 + * So we just directly call the builtin handler, and die if
567 + * that one cannot handle it.
568 */
569 if (starts_with(cmd, "git-")) {
570 cmd += 4;
571 argv[0] = cmd;
572 - handle_internal_command(argc, argv);
573 - die("cannot handle %s internally", cmd);
572 + handle_builtin(argc, argv);
573 + die("cannot handle %s as a builtin", cmd);
574 }
575
576 /* Look for flags.. */