aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkshay <[email protected]>2022-01-14 17:18:06 +0000
committerAkshay <[email protected]>2022-01-14 17:18:06 +0000
commit045d4ff2ad4587d7d51a1d7a8b16850ada930e61 (patch)
treeb2e905acb6ab5edd3ea8923d09e5344ead24920a
parentb1c8280851b71822dde6d45337824afa2a55da56 (diff)
ignore `.git` by default
-rw-r--r--bin/src/dirs.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/src/dirs.rs b/bin/src/dirs.rs
index 682ce97..31c97f8 100644
--- a/bin/src/dirs.rs
+++ b/bin/src/dirs.rs
@@ -85,6 +85,9 @@ pub fn build_ignore_set<P: AsRef<Path>>(
85 // add globs from gitignore path as well 85 // add globs from gitignore path as well
86 if !unrestricted { 86 if !unrestricted {
87 gitignore.add(&gitignore_path); 87 gitignore.add(&gitignore_path);
88
89 // ignore .git by default, nobody cares about .git, i'm sure
90 gitignore.add_line(None, ".git")?;
88 } 91 }
89 92
90 for i in ignore { 93 for i in ignore {