Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add documentation
  • Loading branch information
firm1 authored and firm1 committed Jan 7, 2015
commit 0d4b4ea9c84198a9b6003611a3af00ee677d09a6
5 changes: 4 additions & 1 deletion doc/source/tutorial.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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::

Expand Down