diff options
author | Dan Davison <dandavison7@gmail.com> | 2021-05-24 19:39:57 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-24 19:39:57 -0400 |
commit | d4da66d0fc94ab2e62abd3cbb0d4221b422f7753 (patch) | |
tree | 9b550350f454c34d5864fd8f82c79f33cddb39c1 /src/delta.rs | |
parent | feb89ac4387524c7ab571065cec7a190d1917f16 (diff) |
Support custom commit line regex when parsing git output (#558)
Fixes #174
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(' ') |