diff options
Diffstat (limited to 'git/objects/base.py')
-rw-r--r-- | git/objects/base.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/git/objects/base.py b/git/objects/base.py index eb59b0a9..42876fc8 100644 --- a/git/objects/base.py +++ b/git/objects/base.py @@ -132,9 +132,11 @@ class IndexObject(Object): def __init__(self, repo, binsha, mode=None, path=None): """Initialize a newly instanced IndexObject + :param repo: is the Repo we are located in :param binsha: 20 byte sha1 - :param mode: is the stat compatible file mode as int, use the stat module + :param mode: + is the stat compatible file mode as int, use the stat module to evaluate the infomration :param path: is the path to the file in the file system, relative to the git repository root, i.e. @@ -149,7 +151,8 @@ class IndexObject(Object): self.path = path def __hash__(self): - """:return: + """ + :return: Hash of our path as index items are uniquely identifyable by path, not by their data !""" return hash(self.path) |