summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCanop <cano.petrole@gmail.com>2021-02-25 17:03:52 +0100
committerCanop <cano.petrole@gmail.com>2021-02-25 17:03:52 +0100
commitb3464bf7eec15ad575e351ce7e79244542de91fd (patch)
tree0f048134b703b013b9a52e87516a17d049c0a43e
parent7d512894808500946a6acb6d4939d4ba1473c14d (diff)
version 1.2.5v1.2.5
-rw-r--r--CHANGELOG.md5
-rw-r--r--Cargo.lock2
-rw-r--r--Cargo.toml2
-rw-r--r--src/tree_build/builder.rs2
4 files changed, 6 insertions, 5 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index f82dca0..6b42b2f 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,8 +1,9 @@
-### next
+<a name="v1.2.5"></a>
+### v1.2.5 - 2021-02-25
- fix style characters being written in `--no-style` mode - Fix #346
- replace `--no-style` with `--color` taking `yes`, `no` or `auto`, with detection of output being piped in `auto` mode (default). `--no-style` is still usable but it's not documented anymore - Fix #347
- fix wrong version number written in log file - Fix #349
-- by default the number of panels is now limited to 2 (can be changed in conf with `max_panels_count`) - Fix #345
+- by default the number of panels is now limited to 2 (can be changed in conf with `max_panels_count`). The goal is to improve the global ergonomics for the most common (universal?) use case - Fix #345
<a name="v1.2.4"></a>
### v1.2.4 - 2021-02-14
diff --git a/Cargo.lock b/Cargo.lock
index 86346bb..53ece9d 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -121,7 +121,7 @@ dependencies = [
[[package]]
name = "broot"
-version = "1.2.5-dev"
+version = "1.2.5"
dependencies = [
"ahash",
"ansi_colours",
diff --git a/Cargo.toml b/Cargo.toml
index bae461f..89b12f0 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "broot"
-version = "1.2.5-dev"
+version = "1.2.5"
authors = ["dystroy <denys.seguret@gmail.com>"]
repository = "https://github.com/Canop/broot"
documentation = "https://dystroy.org/broot"
diff --git a/src/tree_build/builder.rs b/src/tree_build/builder.rs
index 85f8ff7..d96039a 100644
--- a/src/tree_build/builder.rs
+++ b/src/tree_build/builder.rs
@@ -118,7 +118,6 @@ impl<'c> TreeBuilder<'c> {
return None;
}
let name = name.to_string_lossy();
- let name = name.to_string();
let mut has_match = true;
let mut score = 10000 - i32::from(depth); // we dope less deep entries
let path = e.path();
@@ -148,6 +147,7 @@ impl<'c> TreeBuilder<'c> {
has_match = false;
false
};
+ let name = name.to_string();
if has_match && self.options.filter_by_git_status {
if let Some(line_status_computer) = &self.line_status_computer {
if !line_status_computer.is_interesting(&path) {