From 35057c56ce118e4cbd0584bd4690e765317b4c38 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Wed, 9 Dec 2009 14:12:27 +0100 Subject: 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 --- lib/git/repo.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'lib/git/repo.py') 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 -- cgit v1.2.1