@@ -60,7 +60,15 @@ PyDoc_STRVAR(Blob_diff__doc__,
6060 " Treat old blob as if it had this filename.\n"
6161 "\n"
6262 "new_as_path : str\n"
63- " Treat new blob as if it had this filename.\n" );
63+ " Treat new blob as if it had this filename.\n"
64+ "\n"
65+ "context_lines: int\n"
66+ " Number of unchanged lines that define the boundary of a hunk\n"
67+ " (and to display before and after).\n"
68+ "\n"
69+ "interhunk_lines: int\n"
70+ " Maximum number of unchanged lines between hunk boundaries\n"
71+ " before the hunks will be merged into one.\n" );
6472
6573PyObject *
6674Blob_diff (Blob * self , PyObject * args , PyObject * kwds )
@@ -70,11 +78,12 @@ Blob_diff(Blob *self, PyObject *args, PyObject *kwds)
7078 char * old_as_path = NULL , * new_as_path = NULL ;
7179 Blob * other = NULL ;
7280 int err ;
73- char * keywords [] = {"blob" , "flag" , "old_as_path" , "new_as_path" , NULL };
81+ char * keywords [] = {"blob" , "flag" , "old_as_path" , "new_as_path" , "context_lines" , "interhunk_lines" , NULL };
7482
75- if (!PyArg_ParseTupleAndKeywords (args , kwds , "|O!Iss " , keywords ,
83+ if (!PyArg_ParseTupleAndKeywords (args , kwds , "|O!IssHH " , keywords ,
7684 & BlobType , & other , & opts .flags ,
77- & old_as_path , & new_as_path ))
85+ & old_as_path , & new_as_path ,
86+ & opts .context_lines , & opts .interhunk_lines ))
7887 return NULL ;
7988
8089 if (Object__load ((Object * )self ) == NULL ) { return NULL ; } // Lazy load
0 commit comments