From cb03f35f130b1588b0964d877f29ba845453b467 Mon Sep 17 00:00:00 2001 From: Julian Prein Date: Fri, 5 Jan 2024 15:18:59 +0100 Subject: [PATCH] git:ignore: Match paths in every depth Instead of matching certain paths relative from the root of the repo, match them everywhere. I need this for non-git tools that read the .gitignore file (e.g. fd and rg) to match/ignore the files when called from a parent directory too. `./repo/.git` would otherwise not be ignored. --- .config/git/ignore | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.config/git/ignore b/.config/git/ignore index db769e2..21c3a3d 100644 --- a/.config/git/ignore +++ b/.config/git/ignore @@ -1,13 +1,13 @@ # Ignore .git directory (mostly for tools like rg and fd) -/.git +.git # Ignore all compiled zsh-files *.zwc # Ignore ctags -/tags -/tags.lock -/tags.temp +tags +tags.lock +tags.temp # clangd compile_flags.txt @@ -25,7 +25,7 @@ Session.vim __pycache__/ # Ignore python virtual environment -/venv/ +venv/ # Ignore latex build folder tex_build/