Skip to content

Commit

Permalink
shortlog: rename parse_stdin_ident()
Browse files Browse the repository at this point in the history
This function is actually useful for parsing any identity, whether from
stdin or not. We'll need it for handling trailers.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
peff authored and gitster committed Sep 27, 2020
1 parent f17b0b9 commit 87abb96
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions builtin/shortlog.c
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ static void insert_one_record(struct shortlog *log,
}
}

static int parse_stdin_ident(struct shortlog *log,
struct strbuf *out, const char *in)
static int parse_ident(struct shortlog *log,
struct strbuf *out, const char *in)
{
const char *mailbuf, *namebuf;
size_t namelen, maillen;
Expand Down Expand Up @@ -156,7 +156,7 @@ static void read_from_stdin(struct shortlog *log)
; /* discard blanks */

strbuf_reset(&mapped_ident);
if (parse_stdin_ident(log, &mapped_ident, v) < 0)
if (parse_ident(log, &mapped_ident, v) < 0)
continue;

insert_one_record(log, mapped_ident.buf, oneline.buf);
Expand Down

0 comments on commit 87abb96

Please sign in to comment.