#define USE_THE_REPOSITORY_VARIABLE
#include "git-compat-util.h"
#include "environment.h"
#include "string-list.h"
#include "mailmap.h"
#include "object-name.h"
#include "object-store-ll.h"
#include "setup.h"
char *git_mailmap_file;
char *git_mailmap_blob;
struct mailmap_info { … };
struct mailmap_entry { … };
static void free_mailmap_info(void *p, const char *s UNUSED)
{ … }
static void free_mailmap_entry(void *p, const char *s UNUSED)
{ … }
static int namemap_cmp(const char *a, const char *b)
{ … }
static void add_mapping(struct string_list *map,
char *new_name, char *new_email,
char *old_name, char *old_email)
{ … }
static char *parse_name_and_email(char *buffer, char **name,
char **email, int allow_empty_email)
{ … }
static void read_mailmap_line(struct string_list *map, char *buffer)
{ … }
int read_mailmap_file(struct string_list *map, const char *filename,
unsigned flags)
{ … }
static void read_mailmap_string(struct string_list *map, char *buf)
{ … }
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)
{ … }
static struct string_list_item *lookup_prefix(struct string_list *map,
const char *string, size_t len)
{ … }
int map_user(struct string_list *map,
const char **email, size_t *emaillen,
const char **name, size_t *namelen)
{ … }