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

Function DiffDelta_is_binary__get__

src/diff.c:311–323  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

309);
310
311PyObject *
312DiffDelta_is_binary__get__(DiffDelta *self)
313{
314 if (self->flags & GIT_DIFF_FLAG_BINARY)
315 Py_RETURN_TRUE;
316
317 if (self->flags & GIT_DIFF_FLAG_NOT_BINARY)
318 Py_RETURN_FALSE;
319
320 // This means the file has not been loaded, so we don't know whether it's
321 // binary or text
322 Py_RETURN_NONE;
323}
324
325PyDoc_STRVAR(DiffDelta_status__doc__,
326 "An enums.DeltaStatus constant."

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…