summaryrefslogtreecommitdiff
path: root/lib/git/actor.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/git/actor.py')
-rw-r--r--lib/git/actor.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/git/actor.py b/lib/git/actor.py
index fe4a47e5..04872f1c 100644
--- a/lib/git/actor.py
+++ b/lib/git/actor.py
@@ -18,6 +18,15 @@ class Actor(object):
self.name = name
self.email = email
+ def __eq__(self, other):
+ return self.name == other.name and self.email == other.email
+
+ def __ne__(self, other):
+ return not (self == other)
+
+ def __hash__(self):
+ return hash((self.name, self.email))
+
def __str__(self):
return self.name