Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2020-09-27 11:40:09 +0300
committerJunio C Hamano <gitster@pobox.com>2020-09-27 22:21:05 +0300
commit87abb96222b076a1a9aa9c92f799107141feeca4 (patch)
treeb0c2ab93a01378e573b9a4114bb02fdb57cfe767 /builtin/shortlog.c
parentf17b0b99bf2dc2fcd74544ce35d058e558e6b056 (diff)
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 <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/shortlog.c')
-rw-r--r--builtin/shortlog.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/builtin/shortlog.c b/builtin/shortlog.c
index d2d8103dd3..e6f4faec7c 100644
--- a/builtin/shortlog.c
+++ b/builtin/shortlog.c
@@ -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;
@@ -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);