strbuf_branchname: drop return value
commit311fc74826ac91cd6f6ea932460f88c475bbb310
authorJeff King <peff@peff.net>
Thu, 2 Mar 2017 08:21:27 +0000 (2 03:21 -0500)
committerJunio C Hamano <gitster@pobox.com>
Thu, 2 Mar 2017 19:05:04 +0000 (2 11:05 -0800)
tree81a81dde991eafc37350a24589df1d6df9fbcadd
parente322b60d65a14578995839caa5f48f5426236fdf
strbuf_branchname: drop return value

The return value from strbuf_branchname() is confusing and
useless: it's 0 if the whole name was consumed by an @-mark,
but otherwise is the length of the original name we fed.

No callers actually look at the return value, so let's just
get rid of it.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
sha1_name.c
strbuf.h