{"action":"opened","issue":{"url":"https://api.github.com/repos/BurntSushi/ripgrep/issues/53","repository_url":"https://api.github.com/repos/BurntSushi/ripgrep","labels_url":"https://api.github.com/repos/BurntSushi/ripgrep/issues/53/labels{/name}","comments_url":"https://api.github.com/repos/BurntSushi/ripgrep/issues/53/comments","events_url":"https://api.github.com/repos/BurntSushi/ripgrep/issues/53/events","html_url":"https://github.com/BurntSushi/ripgrep/issues/53","id":179011599,"number":53,"title":"Option to consider only parent .rgignore files?","user":{"login":"kaushalmodi","id":3578197,"avatar_url":"https://avatars.githubusercontent.com/u/3578197?v=3","gravatar_id":"","url":"https://api.github.com/users/kaushalmodi","html_url":"https://github.com/kaushalmodi","followers_url":"https://api.github.com/users/kaushalmodi/followers","following_url":"https://api.github.com/users/kaushalmodi/following{/other_user}","gists_url":"https://api.github.com/users/kaushalmodi/gists{/gist_id}","starred_url":"https://api.github.com/users/kaushalmodi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaushalmodi/subscriptions","organizations_url":"https://api.github.com/users/kaushalmodi/orgs","repos_url":"https://api.github.com/users/kaushalmodi/repos","events_url":"https://api.github.com/users/kaushalmodi/events{/privacy}","received_events_url":"https://api.github.com/users/kaushalmodi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-24T05:17:36Z","updated_at":"2016-09-24T05:17:36Z","closed_at":null,"body":"I have a `~/.gitignore` and that is considered as an ignore file for everything in my `$HOME`. In my use case the contents of `~/.gitignore` do not apply as ignore criteria for searches! I have `~/.gitignore` set up just to prevent committing sensitive text files to git (and then push) by mistake. So that file contains something like\r\n\r\n```\r\na*\r\n!a_ok_to_commit\r\n```\r\n\r\nThat would prevent search of all `a*` files everywhere in my `$HOME`.\r\n\r\nSo it would be great to allow parent `.rgignore` (only) file consideration.\r\n\r\nIn addition a `.gitignore` specific `-u` would also be needed.\r\n\r\nIn summary, there is very little overlap of the contents of `.gitignore` and search ignore files like `.agignore` and `.rgignore`.\r\n\r\nFor `.gitignore`:\r\n\r\n- Never use that for search ignores\r\n- Do not use parent `.gitignore`\r\n\r\nFor `.rgignore`:\r\n\r\n- Use that for search ignores\r\n- Use parent `.rgignore` files\r\n\r\nFrom what I understand, right now `-u` and `--no-ignore-parent` applies to both of these files and you cannot set those options separately for those 2 files.\r\n"}}
{"actor":{"display_login":"kaushalmodi"}}