show-branch: drop head_len variable
commite6a7c75298001996790059e3ae70c627b3204dd9
authorJeff King <peff@peff.net>
Tue, 14 Feb 2017 17:26:01 +0000 (14 12:26 -0500)
committerJunio C Hamano <gitster@pobox.com>
Tue, 14 Feb 2017 19:28:05 +0000 (14 11:28 -0800)
tree9df862942ba40fbe447ddeff4a786353a41ac854
parentc3808ca6982b0ad7ee9b87eca9b50b9a24ec08b0
show-branch: drop head_len variable

We copy the result of resolving HEAD into a buffer and keep
track of its length.  But we never actually use the length
for anything besides the copy. Let's stop passing it around.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/show-branch.c