Skip to main content

looks_like_begin_patch

Function looks_like_begin_patch 

Source
pub fn looks_like_begin_patch(patch: &str) -> bool
Expand description

True when the first non-blank line trims to *** Begin Patch with optional trailing ***.

Mid-document or unified-diff context/+ lines that mention the marker stay unified (#2505).