diff options
Diffstat (limited to 'src/delta.rs')
-rw-r--r-- | src/delta.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/delta.rs b/src/delta.rs index cfafe3dc..81202bf8 100644 --- a/src/delta.rs +++ b/src/delta.rs @@ -115,7 +115,7 @@ impl<'a> StateMachine<'a> { self.source = detect_source(&line); } - let mut handled_line = if line.starts_with("commit ") { + let mut handled_line = if self.config.commit_regex.is_match(line) { self.handle_commit_meta_header_line()? } else if (self.state == State::CommitMeta || self.state == State::Unknown) && line.starts_with(' ') |