Skip to content

Commit 87abb96

Browse files
peffgitster
authored andcommitted
shortlog: rename parse_stdin_ident()
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent f17b0b9 commit 87abb96

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

builtin/shortlog.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@ static void insert_one_record(struct shortlog *log,
9898
}
9999
}
100100

101-
static int parse_stdin_ident(struct shortlog *log,
102-
struct strbuf *out, const char *in)
101+
static int parse_ident(struct shortlog *log,
102+
struct strbuf *out, const char *in)
103103
{
104104
const char *mailbuf, *namebuf;
105105
size_t namelen, maillen;
@@ -156,7 +156,7 @@ static void read_from_stdin(struct shortlog *log)
156156
; /* discard blanks */
157157

158158
strbuf_reset(&mapped_ident);
159-
if (parse_stdin_ident(log, &mapped_ident, v) < 0)
159+
if (parse_ident(log, &mapped_ident, v) < 0)
160160
continue;
161161

162162
insert_one_record(log, mapped_ident.buf, oneline.buf);

0 commit comments

Comments
 (0)