Are comments allowed in ignore files? #2457
-
I can't know for sure because it isn't spelled out in the readme. I'd like to annotate my rg ignore file because there is no built in logic to make files tracked by git non-ignored if they match any globs that are specified in ignore files (or happen to be dotfiles). So I need to take these exceptions and list them with a leading |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
The GUIDE defers to
|
Beta Was this translation helpful? Give feedback.
The GUIDE defers to
man gitignore
for the precise syntax. And indeed, the gitignore format supports comments. Fromman gitignore
: