summaryrefslogtreecommitdiff
path: root/include/git2
diff options
context:
space:
mode:
authorEmilio Cobos Álvarez <emilio@crisal.io>2018-03-15 16:34:30 +0100
committerNika Layzell <nika@thelayzells.com>2018-06-14 22:43:26 -0700
commit7a169390b89ad2182f9d5a31851270f0bc37423a (patch)
tree89049a99566f109343c3ebd2f97f8885a6098414 /include/git2
parent23c6e894317d1c9cd90ee7d93e5b0d264b4dcc6c (diff)
downloadlibgit2-7a169390b89ad2182f9d5a31851270f0bc37423a.tar.gz
mailmap: WIP mailmap support
Diffstat (limited to 'include/git2')
-rw-r--r--include/git2/mailmap.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/include/git2/mailmap.h b/include/git2/mailmap.h
new file mode 100644
index 000000000..bb126d14e
--- /dev/null
+++ b/include/git2/mailmap.h
@@ -0,0 +1,39 @@
+/*
+ * 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 "common.h"
+#include "repository.h"
+
+/**
+ * @file git2/mailmap.h
+ * @brief Mailmap access subroutines.
+ * @defgroup git_rebase Git merge routines
+ * @ingroup Git
+ * @{
+ */
+GIT_BEGIN_DECL
+
+typedef struct git_mailmap git_mailmap;
+
+struct git_mailmap_entry {
+ const char* name;
+ const char* email;
+};
+
+GIT_EXTERN(int) git_mailmap_create(git_mailmap**, git_repository*);
+GIT_EXTERN(void) git_mailmap_free(git_mailmap*);
+GIT_EXTERN(struct git_mailmap_entry) git_mailmap_lookup(
+ git_mailmap* map,
+ const char* name,
+ const char* email);
+
+/** @} */
+GIT_END_DECL
+
+#endif