OSDN Git Service

run_command(): respect GIT_TRACE
authorJohannes Schindelin <Johannes.Schindelin@gmx.de>
Mon, 7 Jul 2008 13:41:34 +0000 (14:41 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 7 Jul 2008 20:16:33 +0000 (13:16 -0700)
When GIT_TRACE is set, the user is most likely wanting to see an external
command that is about to be executed.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
run-command.c

index 44100a7..7068ec7 100644 (file)
@@ -65,6 +65,8 @@ int start_command(struct child_process *cmd)
                cmd->err = fderr[0];
        }
 
+       trace_argv_printf(cmd->argv, "trace: run_command:");
+
        cmd->pid = fork();
        if (cmd->pid < 0) {
                if (need_in)