summaryrefslogtreecommitdiff
path: root/builtin/commit.c
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2019-03-20 04:14:01 -0400
committerJunio C Hamano <gitster@pobox.com>2019-03-20 18:34:09 +0900
commitaf117077d38af01f585adb16ded9deccb559b0b6 (patch)
tree52d7b87c06dca7ab2abad1e7de4c21450164c870 /builtin/commit.c
parent7954d365c64fd5cb854cf477aab3c12b8ff43f42 (diff)
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>
Diffstat (limited to 'builtin/commit.c')
0 files changed, 0 insertions, 0 deletions