mirror of
https://github.com/git/git.git
synced 2024-11-05 08:47:56 +01:00
0925ce4d49
map_user() allows to lookup and replace both email and name of a user, based on a new style mailmap file. The possible mailmap definitions are now: proper_name <commit_email> # Old style <proper_email> <commit_email> # New style proper_name <proper_email> <commit_email> # New style proper_name <proper_email> commit_name <commit_email> # New style map_email() operates the same as before, with the exception that it also will to try to match on a name passed in through the name return buffer. clear_mailmap() is needed to now clear the more complex mailmap structure. Signed-off-by: Marius Storm-Olsen <marius@trolltech.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
11 lines
350 B
C
11 lines
350 B
C
#ifndef MAILMAP_H
|
|
#define MAILMAP_H
|
|
|
|
int read_mailmap(struct string_list *map, char **repo_abbrev);
|
|
void clear_mailmap(struct string_list *map);
|
|
|
|
int map_email(struct string_list *mailmap, const char *email, char *name, int maxlen);
|
|
int map_user(struct string_list *mailmap,
|
|
char *email, int maxlen_email, char *name, int maxlen_name);
|
|
|
|
#endif
|