summaryrefslogtreecommitdiff
path: root/run-command.c
diff options
context:
space:
mode:
authorRené Scharfe <l.s.r@web.de>2018-03-25 10:57:50 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-03-25 16:49:15 (GMT)
commit248f66ed8e055f59ad38daed6b6606336ff63c58 (patch)
treeecb79452406951576f9d492fabfaecbb9e2afb1b /run-command.c
parent090a09272ac3bead828519b66eb62d53b53ecf7d (diff)
downloadgit-248f66ed8e055f59ad38daed6b6606336ff63c58.zip
git-248f66ed8e055f59ad38daed6b6606336ff63c58.tar.gz
git-248f66ed8e055f59ad38daed6b6606336ff63c58.tar.bz2
run-command: use strbuf_addstr() for adding a string to a strbuf
Patch generated with Coccinelle and contrib/coccinelle/strbuf.cocci. Signed-off-by: Rene Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'run-command.c')
-rw-r--r--run-command.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/run-command.c b/run-command.c
index a483d59..84899e4 100644
--- a/run-command.c
+++ b/run-command.c
@@ -621,7 +621,7 @@ static void trace_run_command(const struct child_process *cp)
if (!trace_want(&trace_default_key))
return;
- strbuf_addf(&buf, "trace: run_command:");
+ strbuf_addstr(&buf, "trace: run_command:");
if (cp->dir) {
strbuf_addstr(&buf, " cd ");
sq_quote_buf_pretty(&buf, cp->dir);