summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSascha Grunert <mail@saschagrunert.de>2017-07-02 13:15:25 +0200
committerSascha Grunert <mail@saschagrunert.de>2017-07-02 13:15:40 +0200
commitc9dee696c64709f32dff0fad9d7a6c8779a72c6d (patch)
treea49246824eb8e45fecbd26048dc1ea5384da1441
parent851e6ae5a431c9c791948329faeb4c48b216e23b (diff)
Fixed coloring bug1.6.1
-rw-r--r--Cargo.lock2
-rw-r--r--Cargo.toml2
-rw-r--r--src/parser.rs8
3 files changed, 8 insertions, 4 deletions
diff --git a/Cargo.lock b/Cargo.lock
index 924f60c..056fe26 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -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)",
diff --git a/Cargo.toml b/Cargo.toml
index e635043..8952a63 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -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)