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.
This commit is contained in:
2024-01-05 15:18:59 +01:00
parent 0c049d235a
commit cb03f35f13

View File

@@ -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/