diff options
author | René Scharfe <l.s.r@web.de> | 2014-07-10 10:52:21 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-07-10 14:06:45 -0700 |
commit | e992d1eb39033206dd44143ff28214b837c3d89f (patch) | |
tree | 649d3e17694ea502150059fe044be36a59ecb71d /sha1_name.c | |
parent | 81e776d92bb19a4fab12dcc537adfd543468d7d0 (diff) | |
download | git-e992d1eb39033206dd44143ff28214b837c3d89f.tar.gz |
use strbuf_addbuf for adding strbufs
Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'sha1_name.c')
-rw-r--r-- | sha1_name.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sha1_name.c b/sha1_name.c index 5bfa841699..6ccd3a53f8 100644 --- a/sha1_name.c +++ b/sha1_name.c @@ -946,7 +946,7 @@ static int interpret_nth_prior_checkout(const char *name, int namelen, retval = 0; if (0 < for_each_reflog_ent_reverse("HEAD", grab_nth_branch_switch, &cb)) { strbuf_reset(buf); - strbuf_add(buf, cb.buf.buf, cb.buf.len); + strbuf_addbuf(buf, &cb.buf); retval = brace - name + 1; } |