diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2015-01-21 11:45:32 +0100 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2015-01-21 11:45:32 +0100 |
commit | e48e52001d5abad7b28a4ecadde63c78c3946339 (patch) | |
tree | 2f3a3b274f7e4d782bfd9ebbbbd42f2d71e2830b /git/objects/base.py | |
parent | c3c6c81b3281333a5a1152f667c187c9dce12944 (diff) | |
download | gitpython-e48e52001d5abad7b28a4ecadde63c78c3946339.tar.gz |
Initial set of documentation improvements, and a fix to the submodule tests.
Now travisci tests should work once again.
Related to #239
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) |