git: s/run_command/run_builtin/
There is a static function called run_command which conflicts with the library function in run-command.c; this isn't a problem currently, but prevents including run-command.h in git.c. This patch just renames the static function to something more specific and non-conflicting. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Jeff King committed
Jan 28, 2009 at 02:33 UTC
f172f334fde49ce29d0afa21749bf85463a2db9a
1 file changed
+2
-2
git.c
+2
-2
@@ -219,7 +219,7 @@ struct cmd_struct {
219
int option;
220
};
221
222
-static int run_command(struct cmd_struct *p, int argc, const char **argv)
222
+static int run_builtin(struct cmd_struct *p, int argc, const char **argv)
223
{
224
int status;
225
struct stat st;
@@ -384,7 +384,7 @@ static void handle_internal_command(int argc, const char **argv)
384
struct cmd_struct *p = commands+i;
385
if (strcmp(p->cmd, cmd))
386
continue;
387
- exit(run_command(p, argc, argv));
387
+ exit(run_builtin(p, argc, argv));
388
}
389
}
390