MCPcopy Create free account
hub / github.com/libgit2/pygit2 / Diff_find_similar

Function Diff_find_similar

src/diff.c:1035–1056  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1033 );
1034
1035PyObject *
1036Diff_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
1058PyObject *
1059Diff_iter(Diff *self)

Callers

nothing calls this directly

Calls 1

Error_setFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…