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

Class DiffFlag

pygit2/enums.py:441–464  ·  view source on GitHub ↗

Flags for the delta object and the file objects on each side. These flags are used for both the `flags` value of the `DiffDelta` and the flags for the `DiffFile` objects representing the old and new sides of the delta. Values outside of this public range should be considered r

Source from the content-addressed store, hash-verified

439
440
441class DiffFlag(IntFlag):
442 """
443 Flags for the delta object and the file objects on each side.
444
445 These flags are used for both the `flags` value of the `DiffDelta`
446 and the flags for the `DiffFile` objects representing the old and
447 new sides of the delta. Values outside of this public range should be
448 considered reserved for internal or future use.
449 """
450
451 BINARY = _pygit2.GIT_DIFF_FLAG_BINARY
452 'file(s) treated as binary data'
453
454 NOT_BINARY = _pygit2.GIT_DIFF_FLAG_NOT_BINARY
455 'file(s) treated as text data'
456
457 VALID_ID = _pygit2.GIT_DIFF_FLAG_VALID_ID
458 '`id` value is known correct'
459
460 EXISTS = _pygit2.GIT_DIFF_FLAG_EXISTS
461 'file exists at this side of the delta'
462
463 VALID_SIZE = _pygit2.GIT_DIFF_FLAG_VALID_SIZE
464 'file size value is known correct'
465
466
467class DiffOption(IntFlag):

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…