3 ms·
If you’re using version control for your project, this often includes metadata in the .svn, .git, or .hg directories. This is dealt with easily enough by exclud
by danieldk 15y ago
If you’re using version control for your project, this often includes metadata in the .svn, .git, or .hg directories. This is dealt with easily enough by excluding (grep -v)
Actually, some version control systems allow you to grep managed files specifically. E.g. in Git using git grep, including specific commits, branches, etc. Tim Pope's Fugitive git plugin for vim also does this (:Ggrep), and puts results on the quickfix list.
- tyrmored 15y agoOp here. That part is mostly to use a familiar tool first and then talk people into trying Ack out. I don't use grep anymore for code work either.