@@ -41,7 +41,7 @@ extern PyObject *GitError;
4141extern PyTypeObject BlobType ;
4242
4343PyDoc_STRVAR (Blob_diff__doc__ ,
44- "diff([blob: Blob, flag : int = GIT_DIFF_NORMAL, old_as_path: str, new_as_path: str]) -> Patch\n"
44+ "diff([blob: Blob, flags : int = GIT_DIFF_NORMAL, old_as_path: str, new_as_path: str]) -> Patch\n"
4545 "\n"
4646 "Directly generate a :py:class:`pygit2.Patch` from the difference\n"
4747 "between two blobs.\n"
@@ -53,8 +53,8 @@ PyDoc_STRVAR(Blob_diff__doc__,
5353 "blob : Blob\n"
5454 " The :py:class:`~pygit2.Blob` to diff.\n"
5555 "\n"
56- "flag \n"
57- " A GIT_DIFF_* constant.\n"
56+ "flags \n"
57+ " A combination of GIT_DIFF_* constant.\n"
5858 "\n"
5959 "old_as_path : str\n"
6060 " Treat old blob as if it had this filename.\n"
@@ -78,7 +78,7 @@ Blob_diff(Blob *self, PyObject *args, PyObject *kwds)
7878 char * old_as_path = NULL , * new_as_path = NULL ;
7979 Blob * other = NULL ;
8080 int err ;
81- char * keywords [] = {"blob" , "flag " , "old_as_path" , "new_as_path" , "context_lines" , "interhunk_lines" , NULL };
81+ char * keywords [] = {"blob" , "flags " , "old_as_path" , "new_as_path" , "context_lines" , "interhunk_lines" , NULL };
8282
8383 if (!PyArg_ParseTupleAndKeywords (args , kwds , "|O!IssHH" , keywords ,
8484 & BlobType , & other , & opts .flags ,
@@ -100,7 +100,7 @@ Blob_diff(Blob *self, PyObject *args, PyObject *kwds)
100100
101101
102102PyDoc_STRVAR (Blob_diff_to_buffer__doc__ ,
103- "diff_to_buffer(buffer: bytes = None, flag : int = GIT_DIFF_NORMAL[, old_as_path: str, buffer_as_path: str]) -> Patch\n"
103+ "diff_to_buffer(buffer: bytes = None, flags : int = GIT_DIFF_NORMAL[, old_as_path: str, buffer_as_path: str]) -> Patch\n"
104104 "\n"
105105 "Directly generate a :py:class:`~pygit2.Patch` from the difference\n"
106106 "between a blob and a buffer.\n"
@@ -112,8 +112,8 @@ PyDoc_STRVAR(Blob_diff_to_buffer__doc__,
112112 "buffer : bytes\n"
113113 " Raw data for new side of diff.\n"
114114 "\n"
115- "flag \n"
116- " A GIT_DIFF_* constant .\n"
115+ "flags \n"
116+ " A combination of GIT_DIFF_* constants .\n"
117117 "\n"
118118 "old_as_path : str\n"
119119 " Treat old blob as if it had this filename.\n"
@@ -130,8 +130,7 @@ Blob_diff_to_buffer(Blob *self, PyObject *args, PyObject *kwds)
130130 const char * buffer = NULL ;
131131 Py_ssize_t buffer_len ;
132132 int err ;
133- char * keywords [] = {"buffer" , "flag" , "old_as_path" , "buffer_as_path" ,
134- NULL };
133+ char * keywords [] = {"buffer" , "flags" , "old_as_path" , "buffer_as_path" , NULL };
135134
136135 if (!PyArg_ParseTupleAndKeywords (args , kwds , "|z#Iss" , keywords ,
137136 & buffer , & buffer_len , & opts .flags ,
0 commit comments