diff options
author | Akshay <[email protected]> | 2022-01-14 17:18:06 +0000 |
---|---|---|
committer | Akshay <[email protected]> | 2022-01-14 17:18:06 +0000 |
commit | 045d4ff2ad4587d7d51a1d7a8b16850ada930e61 (patch) | |
tree | b2e905acb6ab5edd3ea8923d09e5344ead24920a /bin/src | |
parent | b1c8280851b71822dde6d45337824afa2a55da56 (diff) |
ignore `.git` by default
Diffstat (limited to 'bin/src')
-rw-r--r-- | bin/src/dirs.rs | 3 |
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 { |