From 045d4ff2ad4587d7d51a1d7a8b16850ada930e61 Mon Sep 17 00:00:00 2001 From: Akshay Date: Fri, 14 Jan 2022 22:48:06 +0530 Subject: ignore `.git` by default --- bin/src/dirs.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'bin/src') 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>( // add globs from gitignore path as well if !unrestricted { gitignore.add(&gitignore_path); + + // ignore .git by default, nobody cares about .git, i'm sure + gitignore.add_line(None, ".git")?; } for i in ignore { -- cgit v1.2.3