diff options
| author | Junio C Hamano <gitster@pobox.com> | 2022-08-03 13:36:08 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2022-08-03 13:36:08 -0700 |
| commit | 87098a047be46ee69da056336109eee2139c1398 (patch) | |
| tree | 6153173514050f41a47867414dc972894c36747c /cache.h | |
| parent | 8e56affcb52e2cf344437a892356a419985ea4ba (diff) | |
| parent | ec031da9f97a2545601304b5ac1e93fee09425b4 (diff) | |
| download | git-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.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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. * |
