pub struct CommitSubject { /* fields omitted */ }
Check commit message subjects for invalid patterns.
Checks commit message subjects for invalid patterns
Patterns which are checked for:
- overly long or short summary lines;
- work-in-progress messages;
fixup!
and squash!
messages; and
- custom prefixes.
Commit messages which appear to have been auto generated by actions such as merging or
reverting commits will skip the summary line length limit (if enforced).
Check the summary line with the given limits.
Checks for work-in-progress commits
Commit messages which mention WIP
or wip
at the beginning of their commit messages are
rejected since they are (nominally) incomplete.
Check for rebase commands
Rebase commands include commits which begin with fixup!
or squash!
. These subjects
are used to indicate that the commit belongs somewhere else in the branch and should be
completed before merging.
Check for tolerated commit subject prefixes.
The specified prefix patterns will be tolerated regardless of any configured
allowed or disallowed prefixes.
Check for required commit prefixes.
The specified prefixes will be the only allowed prefixes on commit message subjects
that do not match a tolerated pattern.
Check for disallowed commit prefixes.
The specified prefixes will be rejected on commit message subjects that do not
also match a tolerated pattern.
Performs copy-assignment from source
. Read more
Returns the "default value" for a type. Read more
Formats the value using the given formatter. Read more
Creates owned data from borrowed data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Mutably borrows from an owned value. Read more