README: Update Signature examples to use the default time arguments.
This commit is contained in:
@@ -148,9 +148,8 @@ Creating commits
|
|||||||
Commits can be created by calling the ``create_commit`` method of the
|
Commits can be created by calling the ``create_commit`` method of the
|
||||||
repository with the following parameters::
|
repository with the following parameters::
|
||||||
|
|
||||||
>>> from time import time
|
>>> author = Signature('Alice Author', 'alice@authors.tld')
|
||||||
>>> author = Signature('Alice Author', 'alice@authors.tld', time(), 0)
|
>>> committer = Signature('Cecil Committer', 'cecil@committers.tld')
|
||||||
>>> committer = Signature('Cecil Committer', 'cecil@committers.tld', time(), 0)
|
|
||||||
>>> tree = repo.TreeBuilder().write()
|
>>> tree = repo.TreeBuilder().write()
|
||||||
>>> repo.create_commit(
|
>>> repo.create_commit(
|
||||||
... 'refs/heads/master', # the name of the reference to update
|
... 'refs/heads/master', # the name of the reference to update
|
||||||
|
Reference in New Issue
Block a user