Skip to main content

Module diff

Module diff 

Source
Expand description

Diff preview controls for file operations

Constantsยง

CONTEXT_RADIUS
Number of context lines to include around changes in unified diff output
HEAD_LINE_COUNT
Number of leading diff lines to retain when condensing previews
MAX_FILES_IN_SUMMARY
Maximum number of files to list in suppression summary
MAX_INLINE_DIFF_FILES
Legacy compatibility threshold for the suppression-check API.
MAX_PREVIEW_BYTES
Maximum number of bytes allowed in diff preview inputs
MAX_PREVIEW_LINES
Maximum number of diff lines to keep in a bounded preview before condensation
MAX_SINGLE_FILE_CHANGES
Legacy compatibility threshold for the suppression-check API.
MAX_TOTAL_DIFF_LINES
Legacy compatibility threshold for the suppression-check API.
SUPPRESSION_HINT
Hint message shown with suppressed diffs
SUPPRESSION_MESSAGE
Message shown when inline diffs are suppressed
TAIL_LINE_COUNT
Number of trailing diff lines to retain when condensing previews