| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 1dec7a8 commit 0d4b4ea
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -297,7 +297,10 @@ Access objects and add/remove entries. Commit the changes:: | |||
| 297 | 297 | # Access the entries directly | |
| 298 | 298 | index.add(['my_new_file']) # add a new file to the index | |
| 299 | 299 | index.remove(['dir/existing_file']) | |
| 300 | - new_commit = index.commit("my commit message") | ||
| 300 | + new_commit = index.commit("my commit message") # commit by commit message first | ||
| 301 | + my_author = Actor("An author", "author@example.com") | ||
| 302 | + my_committer = Actor("A committer", "committer@example.com") | ||
| 303 | + next_commit = index.commit("my commit message", author=my_author, commiter=my_committer) # commit by commit message and author and committer | ||
| 301 | 304 | ||
| 302 | 305 | Create new indices from other trees or as result of a merge. Write that result to a new index file:: | |
| 303 | 306 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments