log: drop unused "len" from show_tagger()
commitaf117077d38af01f585adb16ded9deccb559b0b6
authorJeff King <peff@peff.net>
Wed, 20 Mar 2019 08:14:01 +0000 (20 04:14 -0400)
committerJunio C Hamano <gitster@pobox.com>
Wed, 20 Mar 2019 09:34:09 +0000 (20 18:34 +0900)
tree52d7b87c06dca7ab2abad1e7de4c21450164c870
parent7954d365c64fd5cb854cf477aab3c12b8ff43f42
log: drop unused "len" from show_tagger()

We pass the length of the found "tagger" line to show_tagger(), but it
does not use it; instead, it passes the string to pp_user_info(), which
reads until newline or NUL. This is OK for our purposes because we
always read the object contents into a buffer with an extra NUL (and
indeed, our sole caller already relies on this by using starts_with).

Let's drop the ignored parameter. And while we're touching the caller,
let's use skip_prefix() to avoid a magic number.

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