summaryrefslogtreecommitdiff
path: root/mailmap.h
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2007-04-27 00:41:15 -0700
committerJunio C Hamano <junkio@cox.net>2007-04-29 02:05:06 -0700
commit7c1c6782e0b88c9366c575fd47e48050070afdd3 (patch)
tree141a31e6d2af4097fbfaaedb754cea425a835cba /mailmap.h
parent093dc5bee61c47f5b0f3bea04339c9bf8839ca47 (diff)
downloadgit-7c1c6782e0b88c9366c575fd47e48050070afdd3.tar.gz
Split out mailmap handling out of shortlog
This splits out a few functions to deal with mailmap from shortlog and makes it a bit more usable from other programs. Most notably, it does not clobber input e-mail address anymore. Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'mailmap.h')
-rw-r--r--mailmap.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/mailmap.h b/mailmap.h
new file mode 100644
index 0000000000..3503fd2727
--- /dev/null
+++ b/mailmap.h
@@ -0,0 +1,7 @@
+#ifndef MAILMAP_H
+#define MAILMAP_H
+
+int read_mailmap(struct path_list *map, const char *filename, char **repo_abbrev);
+int map_email(struct path_list *mailmap, const char *email, char *name, int maxlen);
+
+#endif