| 1033 | ); |
| 1034 | |
| 1035 | PyObject * |
| 1036 | Diff_find_similar(Diff *self, PyObject *args, PyObject *kwds) |
| 1037 | { |
| 1038 | int err; |
| 1039 | git_diff_find_options opts = GIT_DIFF_FIND_OPTIONS_INIT; |
| 1040 | |
| 1041 | char *keywords[] = {"flags", "rename_threshold", "copy_threshold", |
| 1042 | "rename_from_rewrite_threshold", |
| 1043 | "break_rewrite_threshold", "rename_limit", NULL}; |
| 1044 | |
| 1045 | if (!PyArg_ParseTupleAndKeywords(args, kwds, "|iHHHHI", keywords, |
| 1046 | &opts.flags, &opts.rename_threshold, &opts.copy_threshold, |
| 1047 | &opts.rename_from_rewrite_threshold, &opts.break_rewrite_threshold, |
| 1048 | &opts.rename_limit)) |
| 1049 | return NULL; |
| 1050 | |
| 1051 | err = git_diff_find_similar(self->diff, &opts); |
| 1052 | if (err < 0) |
| 1053 | return Error_set(err); |
| 1054 | |
| 1055 | Py_RETURN_NONE; |
| 1056 | } |
| 1057 | |
| 1058 | PyObject * |
| 1059 | Diff_iter(Diff *self) |
nothing calls this directly
no test coverage detected
searching dependent graphs…