Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'nd/trace-with-env'
author
Junio C Hamano
<gitster@pobox.com>
Tue, 10 Apr 2018 07:28:22 +0000
(16:28 +0900)
committer
Junio C Hamano
<gitster@pobox.com>
Tue, 10 Apr 2018 07:28:22 +0000
(16:28 +0900)
Code cleanup.
* nd/trace-with-env:
run-command: use strbuf_addstr() for adding a string to a strbuf
run-command.c
patch
|
blob
|
history
raw
(from parent 1:
ef06d74
)
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);