update documentation on creating blobs
This commit is contained in:
@@ -220,8 +220,8 @@ Creating blobs
|
|||||||
--------------------
|
--------------------
|
||||||
|
|
||||||
.. automethod:: pygit2.Repository.create_blob
|
.. automethod:: pygit2.Repository.create_blob
|
||||||
.. automethod:: pygit2.Repository.create_blob_fromfile
|
.. automethod:: pygit2.Repository.create_blob_fromworkdir
|
||||||
|
.. automethod:: pygit2.Repository.create_blob_fromdisk
|
||||||
|
|
||||||
Tags
|
Tags
|
||||||
=================
|
=================
|
||||||
|
@@ -578,7 +578,7 @@ Repository_create_blob(Repository *self, PyObject *args)
|
|||||||
PyDoc_STRVAR(Repository_create_blob_fromworkdir__doc__,
|
PyDoc_STRVAR(Repository_create_blob_fromworkdir__doc__,
|
||||||
"create_blob_fromworkdir(path) -> bytes\n"
|
"create_blob_fromworkdir(path) -> bytes\n"
|
||||||
"\n"
|
"\n"
|
||||||
"Create a new blob from a file within the working directory.");
|
"Create a new blob from a file within the working directory (raise an error otherwise).");
|
||||||
|
|
||||||
PyObject *
|
PyObject *
|
||||||
Repository_create_blob_fromworkdir(Repository *self, PyObject *args)
|
Repository_create_blob_fromworkdir(Repository *self, PyObject *args)
|
||||||
@@ -601,7 +601,7 @@ Repository_create_blob_fromworkdir(Repository *self, PyObject *args)
|
|||||||
PyDoc_STRVAR(Repository_create_blob_fromdisk__doc__,
|
PyDoc_STRVAR(Repository_create_blob_fromdisk__doc__,
|
||||||
"create_blob_fromdisk(path) -> bytes\n"
|
"create_blob_fromdisk(path) -> bytes\n"
|
||||||
"\n"
|
"\n"
|
||||||
"Create a new blob from file.");
|
"Create a new blob from a file anywhere (no working directory check).");
|
||||||
|
|
||||||
PyObject *
|
PyObject *
|
||||||
Repository_create_blob_fromdisk(Repository *self, PyObject *args)
|
Repository_create_blob_fromdisk(Repository *self, PyObject *args)
|
||||||
|
Reference in New Issue
Block a user