diff options
author | René Scharfe <l.s.r@web.de> | 2017-10-01 16:44:20 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-10-02 06:13:46 +0200 |
commit | 72d4a9a721d519982cbc97c36f3fcf33b4103ed4 (patch) | |
tree | 5e59453cd9615b9d6b92dbccf88362497dce49db /refs/packed-backend.c | |
parent | path: use strbuf_add_real_path() (diff) | |
download | git-72d4a9a721d519982cbc97c36f3fcf33b4103ed4.tar.xz git-72d4a9a721d519982cbc97c36f3fcf33b4103ed4.zip |
use strbuf_addstr() for adding strings to strbufs
Use strbuf_addstr() instead of strbuf_addf() for adding strings. That's
simpler and makes the intent clearer.
Patch generated by Coccinelle and contrib/coccinelle/strbuf.cocci;
adjusted indentation in refs/packed-backend.c manually.
Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'refs/packed-backend.c')
-rw-r--r-- | refs/packed-backend.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/refs/packed-backend.c b/refs/packed-backend.c index 3bc47ffd5e..2951514f25 100644 --- a/refs/packed-backend.c +++ b/refs/packed-backend.c @@ -729,8 +729,8 @@ static int write_with_updates(struct packed_ref_store *refs, } if (ok != ITER_DONE) { - strbuf_addf(err, "unable to write packed-refs file: " - "error iterating over old contents"); + strbuf_addstr(err, "unable to write packed-refs file: " + "error iterating over old contents"); goto error; } |