add .*/COMMIT_EDITMSG to persistent file exclusions

useful in the case of bare git repos, where the git dir is not always
named .git, and so the previous exclusion wouldn't catch it.
pull/9143/head
Ingrid 3 months ago
parent 1719bff791
commit 175a830e6a

@ -997,7 +997,7 @@ impl Default for Config {
persist_search: false,
persist_clipboard: false,
// TODO: any more defaults we should add here?
persistence_file_exclusions: [r".*/\.git/.*"]
persistence_file_exclusions: [r".*/\.git/.*", r".*/COMMIT_EDITMSG"]
.iter()
.map(|s| Regex::new(s).unwrap().into())
.collect(),

Loading…
Cancel
Save