]> git.ipfire.org Git - thirdparty/git.git/blob - mailmap.h
908365e1bffafc6a8acaffd891d69a292fa78ad2
[thirdparty/git.git] / mailmap.h
1 #ifndef MAILMAP_H
2 #define MAILMAP_H
3
4 struct string_list;
5
6 extern char *git_mailmap_file;
7 extern char *git_mailmap_blob;
8
9 /* Flags for read_mailmap_file() */
10 #define MAILMAP_NOFOLLOW (1<<0)
11
12 int read_mailmap_file(struct string_list *map, const char *filename,
13 unsigned flags);
14 int read_mailmap_blob(struct string_list *map, const char *name);
15
16 int read_mailmap(struct string_list *map);
17 void clear_mailmap(struct string_list *map);
18
19 int map_user(struct string_list *map,
20 const char **email, size_t *emaillen, const char **name, size_t *namelen);
21
22 #endif