mirror of
https://github.com/git/git.git
synced 2024-11-27 03:53:55 +08:00
f54ca6ae72
The git check-mailmap command reads the mailmap from either the default .mailmap location and then from the mailmap.blob and mailmap.file configurations. A following change to git send-email will want to support new configuration options based on the configured identity. The identity-based configuration and options only make sense in the context of git send-email. Expose the read_mailmap_file and read_mailmap_blob functions from mailmap.c. Teach git check-mailmap the --mailmap-file and --mailmap-blob options which load the additional mailmap sources. Signed-off-by: Jacob Keller <jacob.keller@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
23 lines
565 B
C
23 lines
565 B
C
#ifndef MAILMAP_H
|
|
#define MAILMAP_H
|
|
|
|
struct string_list;
|
|
|
|
extern char *git_mailmap_file;
|
|
extern char *git_mailmap_blob;
|
|
|
|
/* Flags for read_mailmap_file() */
|
|
#define MAILMAP_NOFOLLOW (1<<0)
|
|
|
|
int read_mailmap_file(struct string_list *map, const char *filename,
|
|
unsigned flags);
|
|
int read_mailmap_blob(struct string_list *map, const char *name);
|
|
|
|
int read_mailmap(struct string_list *map);
|
|
void clear_mailmap(struct string_list *map);
|
|
|
|
int map_user(struct string_list *map,
|
|
const char **email, size_t *emaillen, const char **name, size_t *namelen);
|
|
|
|
#endif
|