docs: update talk about signatures

This commit is contained in:
J. David Ibáñez
2012-02-06 23:05:19 +01:00
parent bc7db4ba8a
commit 42006d7153

View File

@@ -106,12 +106,21 @@ Commits
Commit.tree -- the tree object attached to the commit Commit.tree -- the tree object attached to the commit
Commit.parents -- the list of parent commits Commit.parents -- the list of parent commits
The author and committer attributes of commit objects are tuples with four ### Signatures
elements, the author name and email, the unix time and time offset in
minutes: The author and committer attributes of commit objects are ``Signature``
objects:
>>> commit.author >>> commit.author
('J. David Ibáñez', 'jdavid.ibp@gmail.com', 1315005198, 120) <pygit2.Signature object at 0x7f75e9b1f5f8>
This is their interface:
Signature.name -- person's name
Signature.email -- person's email address
Signature.time -- unix time
Signature.offset -- offset from utc in minutes
Trees Trees
----------------- -----------------