diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2009-12-09 14:12:27 +0100 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2009-12-09 14:12:27 +0100 |
commit | 35057c56ce118e4cbd0584bd4690e765317b4c38 (patch) | |
tree | 62173d33647f63435543a115090a56288a9b8cd2 /lib/git/repo.py | |
parent | 6a417f4cf2df39704aa4c869e88d14e9806894a7 (diff) | |
download | gitpython-35057c56ce118e4cbd0584bd4690e765317b4c38.tar.gz |
repo: Added alias for refs property, which is called 'references' , to improve usability. There was no reason that only 'refs' is shortened, whereas there are 'heads' and 'tags' as well
Diffstat (limited to 'lib/git/repo.py')
-rw-r--r-- | lib/git/repo.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/git/repo.py b/lib/git/repo.py index 333b71de..25cc412e 100644 --- a/lib/git/repo.py +++ b/lib/git/repo.py @@ -178,7 +178,7 @@ class Repo(object): return Head.list_items(self) @property - def refs(self): + def references(self): """ A list of Reference objects representing tags, heads and remote references. @@ -186,8 +186,11 @@ class Repo(object): IterableList(Reference, ...) """ return Reference.list_items(self) + + # alias for references + refs = references - # alias heads + # alias for heads branches = heads @property |