Skip to main content

comment_only

Function comment_only 

Source
pub fn comment_only(diff: &str) -> bool
Expand description

Whether a git diff -U0 of one file changes comments and nothing else: at least one hunk, and every added or removed line that is not blank is a comment line (is_comment_line). No hunk at all (a binary file, a mode change) is not “comments only”.