diff options
author | Sascha Grunert <mail@saschagrunert.de> | 2017-07-02 13:15:25 +0200 |
---|---|---|
committer | Sascha Grunert <mail@saschagrunert.de> | 2017-07-02 13:15:40 +0200 |
commit | c9dee696c64709f32dff0fad9d7a6c8779a72c6d (patch) | |
tree | a49246824eb8e45fecbd26048dc1ea5384da1441 | |
parent | 851e6ae5a431c9c791948329faeb4c48b216e23b (diff) |
Fixed coloring bug1.6.1
-rw-r--r-- | Cargo.lock | 2 | ||||
-rw-r--r-- | Cargo.toml | 2 | ||||
-rw-r--r-- | src/parser.rs | 8 |
3 files changed, 8 insertions, 4 deletions
@@ -1,6 +1,6 @@ [root] name = "git-journal" -version = "1.4.2" +version = "1.6.0" dependencies = [ "chrono 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)", "clap 2.25.0 (registry+https://github.com/rust-lang/crates.io-index)", @@ -1,6 +1,6 @@ [package] name = "git-journal" -version = "1.6.0" +version = "1.6.1" license = "MIT" readme = "README.md" keywords = ["parser", "git", "log", "changelog", "journal"] diff --git a/src/parser.rs b/src/parser.rs index 35069e1..2ebd712 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -523,7 +523,9 @@ impl Print for SummaryElement { write!(t, " ({:.7})", oid)?; } } - c3(t)?; + if config.colored_output { + c3(t)?; + } } Ok(Printed::Something) } @@ -668,7 +670,9 @@ impl Print for ListElement { write!(t, " ({:.7})", oid)?; } } - c3(t)?; + if config.colored_output { + c3(t)?; + } } Ok(Printed::Something) |