docs: update talk about signatures
This commit is contained in:
17
README.md
17
README.md
@@ -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
|
||||||
-----------------
|
-----------------
|
||||||
|
|||||||
Reference in New Issue
Block a user