diff options
| author | Sebastian Thiel <byronimo@gmail.com> | 2010-04-30 09:30:05 +0200 |
|---|---|---|
| committer | Sebastian Thiel <byronimo@gmail.com> | 2010-04-30 09:30:05 +0200 |
| commit | b75c3103a700ac65b6cd18f66e2d0a07cfc09797 (patch) | |
| tree | 045df74b6615d2f8505199d5e71d07f40fc4edee /lib/git/objects/tag.py | |
| parent | 69361d96a59381fde0ac34d19df2d4aff05fb9a9 (diff) | |
| parent | b48e4d3aa853687f420dc51969837734b70bfdec (diff) | |
| download | GitPython-b75c3103a700ac65b6cd18f66e2d0a07cfc09797.tar.gz GitPython-b75c3103a700ac65b6cd18f66e2d0a07cfc09797.zip | |
Merge commit 'refs/merge-requests/14' of git://gitorious.org/git-python/mainline into integration
Diffstat (limited to 'lib/git/objects/tag.py')
| -rw-r--r-- | lib/git/objects/tag.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/git/objects/tag.py b/lib/git/objects/tag.py index e880bbe5..96363db6 100644 --- a/lib/git/objects/tag.py +++ b/lib/git/objects/tag.py @@ -15,10 +15,10 @@ class TagObject(base.Object): to. """ type = "tag" - __slots__ = ( "object", "tag", "tagger", "tagged_date", "message" ) + __slots__ = ( "object", "tag", "tagger", "tagged_date", "tagger_tz_offset", "message" ) def __init__(self, repo, sha, object=None, tag=None, - tagger=None, tagged_date=None, message=None): + tagger=None, tagged_date=None, tagger_tz_offset=None, message=None): """ Initialize a tag object with additional data @@ -40,6 +40,10 @@ class TagObject(base.Object): ``tagged_date`` : int_seconds_since_epoch is the DateTime of the tag creation - use time.gmtime to convert it into a different format + + ``tagged_tz_offset``: int_seconds_west_of_utc + is the timezone that the authored_date is in + """ super(TagObject, self).__init__(repo, sha ) self._set_self_from_args_(locals()) @@ -58,7 +62,7 @@ class TagObject(base.Object): self.tag = lines[2][4:] # tag <tag name> tagger_info = lines[3][7:]# tagger <actor> <date> - self.tagger, self.tagged_date = utils.parse_actor_and_date(tagger_info) + self.tagger, self.tagged_date, self.tagger_tz_offset = utils.parse_actor_and_date(tagger_info) # line 4 empty - it could mark the beginning of the next header # in csse there really is no message, it would not exist. Otherwise |
