Sha256: edd8723b4c861c855708f2d7f9ed5e37cbb7523534349b0f69258a3557b93b36

Contents?: true

Size: 1.06 KB

Versions: 33

Compression:

Stored size: 1.06 KB

Contents

/*
 * Copyright (C) the libgit2 contributors. All rights reserved.
 *
 * This file is part of libgit2, distributed under the GNU GPL v2 with
 * a Linking Exception. For full terms see the included COPYING file.
 */
#ifndef INCLUDE_mailmap_h__
#define INCLUDE_mailmap_h__

#include "git2/mailmap.h"
#include "vector.h"

/*
 * A mailmap is stored as a sorted vector of 'git_mailmap_entry's. These entries
 * are sorted first by 'replace_email', and then by 'replace_name'. NULL
 * replace_names are ordered first.
 *
 * Looking up a name and email in the mailmap is done with a binary search.
 */
struct git_mailmap {
	git_vector entries;
};

/* Single entry parsed from a mailmap */
typedef struct git_mailmap_entry {
	char *real_name; /**< the real name (may be NULL) */
	char *real_email; /**< the real email (may be NULL) */
	char *replace_name; /**< the name to replace (may be NULL) */
	char *replace_email; /**< the email to replace */
} git_mailmap_entry;

const git_mailmap_entry *git_mailmap_entry_lookup(
	const git_mailmap *mm, const char *name, const char *email);

#endif

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
rugged-1.9.0 vendor/libgit2/src/libgit2/mailmap.h
rugged-1.7.2 vendor/libgit2/src/libgit2/mailmap.h
rugged-1.6.5 vendor/libgit2/src/libgit2/mailmap.h
rugged-1.7.1 vendor/libgit2/src/libgit2/mailmap.h
rugged-1.6.3 vendor/libgit2/src/libgit2/mailmap.h
rugged-1.6.2 vendor/libgit2/src/libgit2/mailmap.h
rugged-1.5.1 vendor/libgit2/src/libgit2/mailmap.h
rugged-1.4.5 vendor/libgit2/src/mailmap.h
rugged-1.5.0.1 vendor/libgit2/src/libgit2/mailmap.h
rugged-1.5.0 vendor/libgit2/src/libgit2/mailmap.h
rugged-1.3.2.3 vendor/libgit2/src/mailmap.h
rugged-1.4.4 vendor/libgit2/src/mailmap.h
rugged-1.3.2.1 vendor/libgit2/src/mailmap.h
rugged-1.4.3 vendor/libgit2/src/mailmap.h
rugged-1.3.2 vendor/libgit2/src/mailmap.h
rugged-1.4.2 vendor/libgit2/src/mailmap.h
rugged-1.3.1 vendor/libgit2/src/mailmap.h
rugged-1.3.0 vendor/libgit2/src/mailmap.h
rugged-1.2.0 vendor/libgit2/src/mailmap.h
rugged-1.1.1 vendor/libgit2/src/mailmap.h