summaryrefslogtreecommitdiff
path: root/lib/git/repo.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/git/repo.py')
-rw-r--r--lib/git/repo.py12
1 files changed, 11 insertions, 1 deletions
diff --git a/lib/git/repo.py b/lib/git/repo.py
index 569d6f1b..d81106c0 100644
--- a/lib/git/repo.py
+++ b/lib/git/repo.py
@@ -143,6 +143,16 @@ class Repo(object):
``git.IterableList(Head, ...)``
"""
return Head.list_items(self)
+
+ @property
+ def refs(self):
+ """
+ A list of Reference objects representing tags, heads and remote references.
+
+ Returns
+ IterableList(Reference, ...)
+ """
+ return Reference.list_items(self)
# alias heads
branches = heads
@@ -615,7 +625,7 @@ class Repo(object):
Create a clone from this repository.
``path``
- is the full path of the new repo (traditionally ends with /<name>.git)
+ is the full path of the new repo (traditionally ends with ./<name>.git).
``kwargs``
keyword arguments to be given to the git-clone command