Fork me on GitHub
#emacs
<
2021-02-17
>
danielneal13:02:41

Anyone using counsel-git-grep and knows how to get it to ignore files/directories?

ag15:02:37

standard .gitignore should work, why not use that?

mpenet15:02:25

you can also specify patterns just for git grep in your git config

mpenet15:02:49

but these would be global

danielneal16:02:30

I don't use gitignore because some of the files I don't want to search are checked in

danielneal16:02:39

e.g. some minimized js for swagger docs

ag16:02:35

then you can call it with a universal argument and use -e option for a pattern https://git-scm.com/docs/git-grep C-u M-x counsel-git-grep