Skip to main content

is_mode_change_only

Function is_mode_change_only 

Source
pub fn is_mode_change_only(line: &str) -> bool
Expand description

Detects if a diff section represents a mode-only change (no content changes).

Mode-only changes have lines like:

  • “old mode 100644”
  • “new mode 100755”

This function checks for the “old mode” marker which indicates a mode change. A mode-only change is one where only the file permissions changed, not the content.

Requirements: 4.4