From 63820aa608c6cdfcd498048b4c0efefc536a78ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herv=C3=A9=20Cauwelier?= Date: Sun, 5 May 2013 10:35:19 +0200 Subject: [PATCH] update documentation on creating blobs --- docs/objects.rst | 4 ++-- src/repository.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/objects.rst b/docs/objects.rst index a07736b..dd849bb 100644 --- a/docs/objects.rst +++ b/docs/objects.rst @@ -220,8 +220,8 @@ Creating blobs -------------------- .. automethod:: pygit2.Repository.create_blob -.. automethod:: pygit2.Repository.create_blob_fromfile - +.. automethod:: pygit2.Repository.create_blob_fromworkdir +.. automethod:: pygit2.Repository.create_blob_fromdisk Tags ================= diff --git a/src/repository.c b/src/repository.c index 6b9c446..bbe1bcf 100644 --- a/src/repository.c +++ b/src/repository.c @@ -578,7 +578,7 @@ Repository_create_blob(Repository *self, PyObject *args) PyDoc_STRVAR(Repository_create_blob_fromworkdir__doc__, "create_blob_fromworkdir(path) -> bytes\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 * 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__, "create_blob_fromdisk(path) -> bytes\n" "\n" - "Create a new blob from file."); + "Create a new blob from a file anywhere (no working directory check)."); PyObject * Repository_create_blob_fromdisk(Repository *self, PyObject *args)