Sync with 'maint'
[git/gitster.git] / mailmap.h
blob908365e1bffafc6a8acaffd891d69a292fa78ad2
1 #ifndef MAILMAP_H
2 #define MAILMAP_H
4 struct string_list;
6 extern char *git_mailmap_file;
7 extern char *git_mailmap_blob;
9 /* Flags for read_mailmap_file() */
10 #define MAILMAP_NOFOLLOW (1<<0)
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);
16 int read_mailmap(struct string_list *map);
17 void clear_mailmap(struct string_list *map);
19 int map_user(struct string_list *map,
20 const char **email, size_t *emaillen, const char **name, size_t *namelen);
22 #endif