{"action":"opened","issue":{"url":"https://api.github.com/repos/bbatsov/projectile/issues/645","labels_url":"https://api.github.com/repos/bbatsov/projectile/issues/645/labels{/name}","comments_url":"https://api.github.com/repos/bbatsov/projectile/issues/645/comments","events_url":"https://api.github.com/repos/bbatsov/projectile/issues/645/events","html_url":"https://github.com/bbatsov/projectile/issues/645","id":56972336,"number":645,"title":"grep not great in git project","user":{"login":"fommil","id":1914041,"avatar_url":"https://avatars.githubusercontent.com/u/1914041?v=3","gravatar_id":"","url":"https://api.github.com/users/fommil","html_url":"https://github.com/fommil","followers_url":"https://api.github.com/users/fommil/followers","following_url":"https://api.github.com/users/fommil/following{/other_user}","gists_url":"https://api.github.com/users/fommil/gists{/gist_id}","starred_url":"https://api.github.com/users/fommil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fommil/subscriptions","organizations_url":"https://api.github.com/users/fommil/orgs","repos_url":"https://api.github.com/users/fommil/repos","events_url":"https://api.github.com/users/fommil/events{/privacy}","received_events_url":"https://api.github.com/users/fommil/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-02-08T22:58:00Z","updated_at":"2015-02-08T22:58:00Z","closed_at":null,"body":"I have just started using projectile and it is great for finding files!\r\n\r\nHowever, the projectile-grep was not as good as I was hoping... it echoed the git command (very long) and found lots of binary files that I'm pretty sure were in the gitignore file.\r\n\r\nCouldn't you make use of git-grep when in a git repo?\r\n\r\nI use this command for grepping in git repos, and it would be awesome if I could replace it with a more general projectile-grep\r\n\r\n```elisp\r\n(defun git-grep (search)\r\n  ;; https://www.ogre.com/node/447\r\n  \"Git grep the entire current repository for SEARCH.\"\r\n  (interactive (list (completing-read\r\n                      \"Search for: \" nil nil nil (current-word))))\r\n  (grep-find (concat \"git --no-pager grep -P -n \\\"\"\r\n                     search\r\n                     \"\\\" `git rev-parse --show-toplevel`\"))\r\n  (other-window 1))\r\n```"}}