From 2b0c2ff1f9eff9238a24c6dcb52fc0a9c6328426 Mon Sep 17 00:00:00 2001 From: Michal S Date: Tue, 27 Sep 2022 20:54:00 +0100 Subject: [PATCH] Exclude more files from `mlc clean` --- src/operations/clean.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/operations/clean.rs b/src/operations/clean.rs index b4761f6..a6c6041 100644 --- a/src/operations/clean.rs +++ b/src/operations/clean.rs @@ -12,6 +12,9 @@ pub fn clean(verbose: bool, force: bool) { // Remove mlc.toml and .git from output dirs.retain(|x| *x != "./mlc.toml" && *x != ".\\mlc.toml"); dirs.retain(|x| *x != "./.git" && *x != ".\\.git"); + dirs.retain(|x| *x != "./.gitignore" && *x != ".\\.gitignore"); + dirs.retain(|x| *x != "./.gitmodules" && *x != ".\\.gitmodules"); + dirs.retain(|x| *x != "./README.md" && *x != ".\\README.md"); let mut unclean_dirs = vec![];