diff options
author | Junio C Hamano <gitster@pobox.com> | 2017-10-05 06:48:19 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-10-05 06:48:19 +0200 |
commit | e46ebc27547e3d09385a76ade7ab11dc794f7595 (patch) | |
tree | 30cb7479169551ea70b0efaf87881d1a0001b6d1 /builtin | |
parent | Merge branch 'rs/resolve-ref-optional-result' (diff) | |
parent | graph: use strbuf_addchars() to add spaces (diff) | |
download | git-e46ebc27547e3d09385a76ade7ab11dc794f7595.tar.xz git-e46ebc27547e3d09385a76ade7ab11dc794f7595.zip |
Merge branch 'rs/cleanup-strbuf-users'
Code clean-up.
* rs/cleanup-strbuf-users:
graph: use strbuf_addchars() to add spaces
use strbuf_addstr() for adding strings to strbufs
path: use strbuf_add_real_path()
Diffstat (limited to 'builtin')
-rw-r--r-- | builtin/branch.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/branch.c b/builtin/branch.c index b998e16d0c..89e34e9ceb 100644 --- a/builtin/branch.c +++ b/builtin/branch.c @@ -353,7 +353,7 @@ static char *build_format(struct ref_filter *filter, int maxwidth, const char *r strbuf_addf(&obname, "%%(objectname:short=%d)", filter->abbrev); strbuf_addf(&local, "%%(align:%d,left)%%(refname:lstrip=2)%%(end)", maxwidth); - strbuf_addf(&local, "%s", branch_get_color(BRANCH_COLOR_RESET)); + strbuf_addstr(&local, branch_get_color(BRANCH_COLOR_RESET)); strbuf_addf(&local, " %s ", obname.buf); if (filter->verbose > 1) |