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:
@@ -1,13 +1,13 @@
|
|||||||
# Ignore .git directory (mostly for tools like rg and fd)
|
# Ignore .git directory (mostly for tools like rg and fd)
|
||||||
/.git
|
.git
|
||||||
|
|
||||||
# Ignore all compiled zsh-files
|
# Ignore all compiled zsh-files
|
||||||
*.zwc
|
*.zwc
|
||||||
|
|
||||||
# Ignore ctags
|
# Ignore ctags
|
||||||
/tags
|
tags
|
||||||
/tags.lock
|
tags.lock
|
||||||
/tags.temp
|
tags.temp
|
||||||
|
|
||||||
# clangd
|
# clangd
|
||||||
compile_flags.txt
|
compile_flags.txt
|
||||||
@@ -25,7 +25,7 @@ Session.vim
|
|||||||
__pycache__/
|
__pycache__/
|
||||||
|
|
||||||
# Ignore python virtual environment
|
# Ignore python virtual environment
|
||||||
/venv/
|
venv/
|
||||||
|
|
||||||
# Ignore latex build folder
|
# Ignore latex build folder
|
||||||
tex_build/
|
tex_build/
|
||||||
|
|||||||
Reference in New Issue
Block a user