diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2009-10-15 14:11:34 +0200 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2009-10-15 14:46:05 +0200 |
commit | 9ce1193c851e98293a237ad3d2d87725c501e89f (patch) | |
tree | bdac0e4a917ca3c1b21eb580402a2854fcf33692 /lib/git/refs.py | |
parent | 2da2b90e6930023ec5739ae0b714bbdb30874583 (diff) | |
download | gitpython-9ce1193c851e98293a237ad3d2d87725c501e89f.tar.gz |
Added Commit.iter_parents to iterate all parents
Renamed Commit.commits to iter_commits
repo: assured proper use of the terms revision ( rev ) and reference ( ref )
Diffstat (limited to 'lib/git/refs.py')
-rw-r--r-- | lib/git/refs.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/git/refs.py b/lib/git/refs.py index 3c9eb817..8ed578ef 100644 --- a/lib/git/refs.py +++ b/lib/git/refs.py @@ -10,7 +10,7 @@ from objects.base import Object from objects.utils import get_object_type_by_name from utils import LazyMixin, Iterable -class Ref(LazyMixin, Iterable): +class Reference(LazyMixin, Iterable): """ Represents a named reference to any object """ @@ -138,7 +138,7 @@ class Ref(LazyMixin, Iterable): # return cls(repo, full_path, obj) -class Head(Ref): +class Head(Reference): """ A Head is a named reference to a Commit. Every Head instance contains a name and a Commit object. @@ -181,7 +181,7 @@ class Head(Ref): -class TagRef(Ref): +class TagRef(Reference): """ Class representing a lightweight tag reference which either points to a commit or to a tag object. In the latter case additional information, like the signature |