git/mailmap.c

#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)
{}

/*
 * On some systems (e.g. MinGW 4.0), string.h has _only_ inline
 * definition of strcasecmp and no non-inline implementation is
 * supplied anywhere, which is, eh, "unusual"; we cannot take an
 * address of such a function to store it in namemap.cmp.  This is
 * here as a workaround---do not assign strcasecmp directly to
 * namemap.cmp until we know no systems that matter have such an
 * "unusual" string.h.
 */
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)
{}

/*
 * Look for an entry in map that match string[0:len]; string[len]
 * does not have to be NUL (but it could be).
 */
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)
{}