DiffGuard
Parameters and properties
Section titled “Parameters and properties”protectedPathsOptionalreadonly string[] | undefinedRoot-relative, case-sensitive patterns for paths forbidden in the final committed diff; omitted or empty disables path restrictions. Supports *, ? and ** with forward slashes; leading /, drive prefixes, backslashes, NUL and . or .. segments are refused. Checks both paths of a rename. Restored changes and uncommitted files are excluded.maxChangedLinesOptionalnumber | undefinedMaximum total added plus deleted text lines in the final committed diff; omitted disables this limit. Must be a nonnegative safe integer; equality is accepted and zero forbids textual changes. A detected rename without content changes adds zero lines. Binary changes are refused whenever this limit is set, because Git cannot count their lines.

