diff options
author | Canop <cano.petrole@gmail.com> | 2020-05-18 21:49:43 +0200 |
---|---|---|
committer | Canop <cano.petrole@gmail.com> | 2020-05-18 21:49:43 +0200 |
commit | 8a3665ee935e440408eac61be7a0b2ac23d0c140 (patch) | |
tree | 9603115a79d50513b7a09740da1f16358052dcad /src/git/ignore.rs | |
parent | 636019348a0fab8f6b273ff07950c5ba9f3d6e03 (diff) |
Special paths defined in conf.toml
It's possible to define in configuration the paths for which we
want a special behavior:
* "not-enter": don't list the content - useful for slow devices
* "enter": list the content even if it's a link (to a dir)
* "hide": don't show the file or directory
Exemple configuration:
```
[special-paths]
"/media/slow-backup-disk" = "no-enter"
"/home/dys/**/useless" = "hide"
"/home/dys/my-link-I-want-to-explore" = "enter"
```
Fix #205
Fix #208
Diffstat (limited to 'src/git/ignore.rs')
-rw-r--r-- | src/git/ignore.rs | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/git/ignore.rs b/src/git/ignore.rs index 0070049..2335846 100644 --- a/src/git/ignore.rs +++ b/src/git/ignore.rs @@ -3,7 +3,6 @@ use { git2, glob, id_arena::{Arena, Id}, - regex::Regex, std::{ fs::File, io::{BufRead, BufReader, Result}, |