aboutsummaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2022-08-03 13:36:08 -0700
committerJunio C Hamano <gitster@pobox.com>2022-08-03 13:36:08 -0700
commit87098a047be46ee69da056336109eee2139c1398 (patch)
tree6153173514050f41a47867414dc972894c36747c /cache.h
parent8e56affcb52e2cf344437a892356a419985ea4ba (diff)
parentec031da9f97a2545601304b5ac1e93fee09425b4 (diff)
downloadgit-87098a047be46ee69da056336109eee2139c1398.tar.xz
Merge branch 'sa/cat-file-mailmap'
"git cat-file" learned an option to use the mailmap when showing commit and tag objects. * sa/cat-file-mailmap: cat-file: add mailmap support ident: rename commit_rewrite_person() to apply_mailmap_to_header() ident: move commit_rewrite_person() to ident.c revision: improve commit_rewrite_person()
Diffstat (limited to 'cache.h')
-rw-r--r--cache.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/cache.h b/cache.h
index ac5ab4ef9d..4aa1bd079d 100644
--- a/cache.h
+++ b/cache.h
@@ -1689,6 +1689,12 @@ struct ident_split {
int split_ident_line(struct ident_split *, const char *, int);
/*
+ * Given a commit or tag object buffer and the commit or tag headers, replaces
+ * the idents in the headers with their canonical versions using the mailmap mechanism.
+ */
+void apply_mailmap_to_header(struct strbuf *, const char **, struct string_list *);
+
+/*
* Compare split idents for equality or strict ordering. Note that we
* compare only the ident part of the line, ignoring any timestamp.
*