| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent df65f51 commit ae6e26e
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2,6 +2,12 @@ | |||
| 2 | 2 | Changelog | |
| 3 | 3 | ========= | |
| 4 | 4 | ||
| 5 | + 2.0.9 - Bugfixes | ||
| 6 | + ============================= | ||
| 7 | + | ||
| 8 | + * `tag.commit` will now resolve commits deeply. | ||
| 9 | + | ||
| 10 | + * `DiffIndex.iter_change_type(...)` produces better results when diffing | ||
| 5 | 11 | 2.0.8 - Features and Bugfixes | |
| 6 | 12 | ============================= | |
| 7 | 13 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -24,13 +24,13 @@ class TagReference(Reference): | |||
| 24 | 24 | def commit(self): | |
| 25 | 25 | """:return: Commit object the tag ref points to""" | |
| 26 | 26 | obj = self.object | |
| 27 | - if obj.type == "commit": | ||
| 28 | - return obj | ||
| 29 | - elif obj.type == "tag": | ||
| 30 | - # it is a tag object which carries the commit as an object - we can point to anything | ||
| 31 | - return obj.object | ||
| 32 | - else: | ||
| 33 | - raise ValueError("Tag %s points to a Blob or Tree - have never seen that before" % self) | ||
| 27 | + while obj.type != 'commit': | ||
| 28 | + if obj.type == "tag": | ||
| 29 | + # it is a tag object which carries the commit as an object - we can point to anything | ||
| 30 | + obj = obj.object | ||
| 31 | + else: | ||
| 32 | + raise ValueError("Tag %s points to a Blob or Tree - have never seen that before" % self) | ||
| 33 | + return obj | ||
| 34 | 34 | ||
| 35 | 35 | @property | |
| 36 | 36 | def tag(self): | |
| Back | FazBrowse Home | New Git URL |
0 commit comments