Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
run-command: use strbuf_addstr() for adding a string to a strbuf
author
René Scharfe
<l.s.r@web.de>
Sun, 25 Mar 2018 10:57:50 +0000
(12:57 +0200)
committer
Junio C Hamano
<gitster@pobox.com>
Sun, 25 Mar 2018 16:49:15 +0000
(09:49 -0700)
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>
run-command.c
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
090a092
)
diff --git
a/run-command.c
b/run-command.c
index a483d5904a3ec1acae8908dd2e699fa00bcaaa9d..84899e423f098bb8cd61eee86bcc484139b1482f 100644
(file)
--- 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_add
f
(&buf, "trace: run_command:");
+ strbuf_add
str
(&buf, "trace: run_command:");
if (cp->dir) {
strbuf_addstr(&buf, " cd ");
sq_quote_buf_pretty(&buf, cp->dir);