summaryrefslogtreecommitdiff
path: root/git/diff.py
diff options
context:
space:
mode:
Diffstat (limited to 'git/diff.py')
-rw-r--r--git/diff.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/git/diff.py b/git/diff.py
index b4d2bae8..a8b12fef 100644
--- a/git/diff.py
+++ b/git/diff.py
@@ -14,7 +14,9 @@ from gitdb.util import hex_to_bin
__all__ = ('Diffable', 'DiffIndex', 'Diff')
+
class Diffable(object):
+
"""Common interface for all object that can be diffed against another object of compatible type.
:note:
@@ -109,6 +111,7 @@ class Diffable(object):
class DiffIndex(list):
+
"""Implements an Index for diffs, allowing a list of Diffs to be queried by
the diff properties.
@@ -120,7 +123,6 @@ class DiffIndex(list):
# M = modified
change_type = ("A", "D", "R", "M")
-
def iter_change_type(self, change_type):
"""
:return:
@@ -149,6 +151,7 @@ class DiffIndex(list):
class Diff(object):
+
"""A Diff contains diff information between two Trees.
It contains two sides a and b of the diff, members are prefixed with
@@ -228,7 +231,6 @@ class Diff(object):
self.diff = diff
-
def __eq__(self, other):
for name in self.__slots__:
if getattr(self, name) != getattr(other, name):