update documentation on creating blobs

This commit is contained in:
Hervé Cauwelier
2013-05-05 10:35:19 +02:00
parent 3a0bafa12b
commit 63820aa608
2 changed files with 4 additions and 4 deletions

View File

@@ -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
================= =================

View File

@@ -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)