2
0
Эх сурвалжийг харах

Add simple check-mailmap command to bin/dulwich.

Jelmer Vernooij 7 жил өмнө
parent
commit
1b896d40b4
1 өөрчлөгдсөн 11 нэмэгдсэн , 0 устгасан
  1. 11 0
      bin/dulwich

+ 11 - 0
bin/dulwich

@@ -532,6 +532,16 @@ class cmd_check_ignore(Command):
         return ret
 
 
+class cmd_check_mailmap(Command):
+
+    def run(self, args):
+        parser = optparse.OptionParser()
+        options, args = parser.parse_args(args)
+        for arg in args:
+            canonical_identity = porcelain.check_mailmap('.', arg)
+            print(canonical_identity)
+
+
 class cmd_help(Command):
 
     def run(self, args):
@@ -558,6 +568,7 @@ commands = {
     "add": cmd_add,
     "archive": cmd_archive,
     "check-ignore": cmd_check_ignore,
+    "check-mailmap": cmd_check_mailmap,
     "clone": cmd_clone,
     "commit": cmd_commit,
     "commit-tree": cmd_commit_tree,