Skip to content

Commit

Permalink
Clarify docstring for Repository.create_commit
Browse files Browse the repository at this point in the history
Change the argument "reference" to "reference_name", because "reference"
might lead to the assumption that one has to pass a pygit2.Reference.
  • Loading branch information
rmoehn committed Apr 22, 2015
1 parent f923e20 commit b69a2f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/repository.c
Original file line number Diff line number Diff line change
Expand Up @@ -838,7 +838,7 @@ Repository_create_blob_fromdisk(Repository *self, PyObject *args)


PyDoc_STRVAR(Repository_create_commit__doc__,
"create_commit(reference, author, committer, message, tree, parents[, encoding]) -> Oid\n"
"create_commit(reference_name, author, committer, message, tree, parents[, encoding]) -> Oid\n"
"\n"
"Create a new commit object, return its oid.");

Expand Down

0 comments on commit b69a2f6

Please sign in to comment.