| 653 | } |
| 654 | |
| 655 | static void trace_run_command(const struct child_process *cp) |
| 656 | { |
| 657 | struct strbuf buf = STRBUF_INIT; |
| 658 | |
| 659 | if (!trace_want(&trace_default_key)) |
| 660 | return; |
| 661 | |
| 662 | strbuf_addstr(&buf, "trace: run_command:"); |
| 663 | if (cp->dir) { |
| 664 | strbuf_addstr(&buf, " cd "); |
| 665 | sq_quote_buf_pretty(&buf, cp->dir); |
| 666 | strbuf_addch(&buf, ';'); |
| 667 | } |
| 668 | trace_add_env(&buf, cp->env.v); |
| 669 | if (cp->git_cmd) |
| 670 | strbuf_addstr(&buf, " git"); |
| 671 | sq_quote_argv_pretty(&buf, cp->args.v); |
| 672 | |
| 673 | trace_printf("%s", buf.buf); |
| 674 | strbuf_release(&buf); |
| 675 | } |
| 676 | |
| 677 | int start_command(struct child_process *cmd) |
| 678 | { |
no test coverage detected