summaryrefslogtreecommitdiff
path: root/git.c
diff options
context:
space:
mode:
authorEric Sunshine <sunshine@sunshineco.com>2013-07-13 00:53:10 (GMT)
committerJunio C Hamano <gitster@pobox.com>2013-07-13 17:19:37 (GMT)
commit226ad3482ac506af0eadd04e732dda556fda80e4 (patch)
tree2d40f98d860da3c59192670ca99203e824abb2d4 /git.c
parent7a3187eb788854ed3a20fee30b27e68430f753b7 (diff)
downloadgit-226ad3482ac506af0eadd04e732dda556fda80e4.zip
git-226ad3482ac506af0eadd04e732dda556fda80e4.tar.gz
git-226ad3482ac506af0eadd04e732dda556fda80e4.tar.bz2
builtin: add git-check-mailmap command
Introduce command check-mailmap, similar to check-attr and check-ignore, which allows direct testing of .mailmap configuration. As plumbing accessible to scripts and other porcelain, check-mailmap publishes the stable, well-tested .mailmap functionality employed by built-in Git commands. Consequently, script authors need not re-implement .mailmap functionality manually, thus avoiding potential quirks and behavioral differences. Signed-off-by: Eric Sunshine <sunshine@sunshineco.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git.c')
-rw-r--r--git.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/git.c b/git.c
index 4359086..02c3035 100644
--- a/git.c
+++ b/git.c
@@ -324,6 +324,7 @@ static void handle_internal_command(int argc, const char **argv)
{ "cat-file", cmd_cat_file, RUN_SETUP },
{ "check-attr", cmd_check_attr, RUN_SETUP },
{ "check-ignore", cmd_check_ignore, RUN_SETUP | NEED_WORK_TREE },
+ { "check-mailmap", cmd_check_mailmap, RUN_SETUP },
{ "check-ref-format", cmd_check_ref_format },
{ "checkout", cmd_checkout, RUN_SETUP | NEED_WORK_TREE },
{ "checkout-index", cmd_checkout_index,