From 0d4b4ea9c84198a9b6003611a3af00ee677d09a6 Mon Sep 17 00:00:00 2001 From: firm1 Date: Wed, 7 Jan 2015 11:49:50 +0100 Subject: add documentation --- doc/source/tutorial.rst | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'doc/source') diff --git a/doc/source/tutorial.rst b/doc/source/tutorial.rst index d9b35fda..3f45b70d 100644 --- a/doc/source/tutorial.rst +++ b/doc/source/tutorial.rst @@ -297,7 +297,10 @@ Access objects and add/remove entries. Commit the changes:: # Access the entries directly index.add(['my_new_file']) # add a new file to the index index.remove(['dir/existing_file']) - new_commit = index.commit("my commit message") + new_commit = index.commit("my commit message") # commit by commit message first + my_author = Actor("An author", "author@example.com") + my_committer = Actor("A committer", "committer@example.com") + next_commit = index.commit("my commit message", author=my_author, commiter=my_committer) # commit by commit message and author and committer Create new indices from other trees or as result of a merge. Write that result to a new index file:: -- cgit v1.2.1