{"action":"closed","number":9,"pull_request":{"url":"https://api.github.com/repos/lee-dohm/language-generic-config/pulls/9","id":91325749,"html_url":"https://github.com/lee-dohm/language-generic-config/pull/9","diff_url":"https://github.com/lee-dohm/language-generic-config/pull/9.diff","patch_url":"https://github.com/lee-dohm/language-generic-config/pull/9.patch","issue_url":"https://api.github.com/repos/lee-dohm/language-generic-config/issues/9","number":9,"state":"closed","locked":false,"title":"Add support for gitignores other than .gitignore","user":{"login":"yudai-nkt","id":13291527,"avatar_url":"https://avatars.githubusercontent.com/u/13291527?v=3","gravatar_id":"","url":"https://api.github.com/users/yudai-nkt","html_url":"https://github.com/yudai-nkt","followers_url":"https://api.github.com/users/yudai-nkt/followers","following_url":"https://api.github.com/users/yudai-nkt/following{/other_user}","gists_url":"https://api.github.com/users/yudai-nkt/gists{/gist_id}","starred_url":"https://api.github.com/users/yudai-nkt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yudai-nkt/subscriptions","organizations_url":"https://api.github.com/users/yudai-nkt/orgs","repos_url":"https://api.github.com/users/yudai-nkt/repos","events_url":"https://api.github.com/users/yudai-nkt/events{/privacy}","received_events_url":"https://api.github.com/users/yudai-nkt/received_events","type":"User","site_admin":false},"body":"As is documented [here](https://git-scm.com/docs/gitignore), we can also put gitignore files in `$HOME/.config/git/ignore` or `$GIT_DIR/info/exclude` as well as well-known `.gitignore`. This PR supports highlighting gitignore files placed in these locations.\r\n\r\n![gitignores2](https://cloud.githubusercontent.com/assets/13291527/19796177/62def1ac-9d1d-11e6-933b-669db9908e58.jpg)\r\n\r\nAt first, I was planning to specify `ignore` as a gitignore file, but this was too generic IMO. Instead, I used `.config/git/ignore` assuming this is utilized in cases where global gitignore is managed in a so-called dotfiles repository. I will change it to `git/ignore` or even `ignore` if it's preferred.\r\n\r\nI also assumed `$GIT_DIR` is set to default (i.e., `.git`) because I don't think it's worth the effort even if it's possible to detect the value of an environmental variable.\r\n\r\n<!--links-->\r\n","created_at":"2016-10-28T05:50:08Z","updated_at":"2016-11-28T07:09:06Z","closed_at":"2016-11-28T07:09:06Z","merged_at":"2016-11-28T07:09:06Z","merge_commit_sha":"7679f6b89fa6f2c6cbca339ed8d72aa94fe83a7c","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/lee-dohm/language-generic-config/pulls/9/commits","review_comments_url":"https://api.github.com/repos/lee-dohm/language-generic-config/pulls/9/comments","review_comment_url":"https://api.github.com/repos/lee-dohm/language-generic-config/pulls/comments{/number}","comments_url":"https://api.github.com/repos/lee-dohm/language-generic-config/issues/9/comments","statuses_url":"https://api.github.com/repos/lee-dohm/language-generic-config/statuses/eb144a76a04fa4765c26bb1595a173fac11e1aef","head":{"label":"yudai-nkt:gitignores","ref":"gitignores","sha":"eb144a76a04fa4765c26bb1595a173fac11e1aef","user":{"login":"yudai-nkt","id":13291527,"avatar_url":"https://avatars.githubusercontent.com/u/13291527?v=3","gravatar_id":"","url":"https://api.github.com/users/yudai-nkt","html_url":"https://github.com/yudai-nkt","followers_url":"https://api.github.com/users/yudai-nkt/followers","following_url":"https://api.github.com/users/yudai-nkt/following{/other_user}","gists_url":"https://api.github.com/users/yudai-nkt/gists{/gist_id}","starred_url":"https://api.github.com/users/yudai-nkt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yudai-nkt/subscriptions","organizations_url":"https://api.github.com/users/yudai-nkt/orgs","repos_url":"https://api.github.com/users/yudai-nkt/repos","events_url":"https://api.github.com/users/yudai-nkt/events{/privacy}","received_events_url":"https://api.github.com/users/yudai-nkt/received_events","type":"User","site_admin":false},"repo":{"id":72176272,"name":"language-generic-config","full_name":"yudai-nkt/language-generic-config","owner":{"login":"yudai-nkt","id":13291527,"avatar_url":"https://avatars.githubusercontent.com/u/13291527?v=3","gravatar_id":"","url":"https://api.github.com/users/yudai-nkt","html_url":"https://github.com/yudai-nkt","followers_url":"https://api.github.com/users/yudai-nkt/followers","following_url":"https://api.github.com/users/yudai-nkt/following{/other_user}","gists_url":"https://api.github.com/users/yudai-nkt/gists{/gist_id}","starred_url":"https://api.github.com/users/yudai-nkt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yudai-nkt/subscriptions","organizations_url":"https://api.github.com/users/yudai-nkt/orgs","repos_url":"https://api.github.com/users/yudai-nkt/repos","events_url":"https://api.github.com/users/yudai-nkt/events{/privacy}","received_events_url":"https://api.github.com/users/yudai-nkt/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/yudai-nkt/language-generic-config","description":"Basic syntax highlighting for generic config files in Atom.","fork":true,"url":"https://api.github.com/repos/yudai-nkt/language-generic-config","forks_url":"https://api.github.com/repos/yudai-nkt/language-generic-config/forks","keys_url":"https://api.github.com/repos/yudai-nkt/language-generic-config/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yudai-nkt/language-generic-config/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yudai-nkt/language-generic-config/teams","hooks_url":"https://api.github.com/repos/yudai-nkt/language-generic-config/hooks","issue_events_url":"https://api.github.com/repos/yudai-nkt/language-generic-config/issues/events{/number}","events_url":"https://api.github.com/repos/yudai-nkt/language-generic-config/events","assignees_url":"https://api.github.com/repos/yudai-nkt/language-generic-config/assignees{/user}","branches_url":"https://api.github.com/repos/yudai-nkt/language-generic-config/branches{/branch}","tags_url":"https://api.github.com/repos/yudai-nkt/language-generic-config/tags","blobs_url":"https://api.github.com/repos/yudai-nkt/language-generic-config/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yudai-nkt/language-generic-config/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yudai-nkt/language-generic-config/git/refs{/sha}","trees_url":"https://api.github.com/repos/yudai-nkt/language-generic-config/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yudai-nkt/language-generic-config/statuses/{sha}","languages_url":"https://api.github.com/repos/yudai-nkt/language-generic-config/languages","stargazers_url":"https://api.github.com/repos/yudai-nkt/language-generic-config/stargazers","contributors_url":"https://api.github.com/repos/yudai-nkt/language-generic-config/contributors","subscribers_url":"https://api.github.com/repos/yudai-nkt/language-generic-config/subscribers","subscription_url":"https://api.github.com/repos/yudai-nkt/language-generic-config/subscription","commits_url":"https://api.github.com/repos/yudai-nkt/language-generic-config/commits{/sha}","git_commits_url":"https://api.github.com/repos/yudai-nkt/language-generic-config/git/commits{/sha}","comments_url":"https://api.github.com/repos/yudai-nkt/language-generic-config/comments{/number}","issue_comment_url":"https://api.github.com/repos/yudai-nkt/language-generic-config/issues/comments{/number}","contents_url":"https://api.github.com/repos/yudai-nkt/language-generic-config/contents/{+path}","compare_url":"https://api.github.com/repos/yudai-nkt/language-generic-config/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yudai-nkt/language-generic-config/merges","archive_url":"https://api.github.com/repos/yudai-nkt/language-generic-config/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yudai-nkt/language-generic-config/downloads","issues_url":"https://api.github.com/repos/yudai-nkt/language-generic-config/issues{/number}","pulls_url":"https://api.github.com/repos/yudai-nkt/language-generic-config/pulls{/number}","milestones_url":"https://api.github.com/repos/yudai-nkt/language-generic-config/milestones{/number}","notifications_url":"https://api.github.com/repos/yudai-nkt/language-generic-config/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yudai-nkt/language-generic-config/labels{/name}","releases_url":"https://api.github.com/repos/yudai-nkt/language-generic-config/releases{/id}","deployments_url":"https://api.github.com/repos/yudai-nkt/language-generic-config/deployments","created_at":"2016-10-28T05:28:25Z","updated_at":"2016-10-28T05:28:26Z","pushed_at":"2016-10-28T05:36:29Z","git_url":"git://github.com/yudai-nkt/language-generic-config.git","ssh_url":"git@github.com:yudai-nkt/language-generic-config.git","clone_url":"https://github.com/yudai-nkt/language-generic-config.git","svn_url":"https://github.com/yudai-nkt/language-generic-config","homepage":"https://atom.io/packages/language-generic-config","size":50,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"lee-dohm:master","ref":"master","sha":"457a8be69c8e81aa1fd8c47c80da019f12f64f95","user":{"login":"lee-dohm","id":1038121,"avatar_url":"https://avatars.githubusercontent.com/u/1038121?v=3","gravatar_id":"","url":"https://api.github.com/users/lee-dohm","html_url":"https://github.com/lee-dohm","followers_url":"https://api.github.com/users/lee-dohm/followers","following_url":"https://api.github.com/users/lee-dohm/following{/other_user}","gists_url":"https://api.github.com/users/lee-dohm/gists{/gist_id}","starred_url":"https://api.github.com/users/lee-dohm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lee-dohm/subscriptions","organizations_url":"https://api.github.com/users/lee-dohm/orgs","repos_url":"https://api.github.com/users/lee-dohm/repos","events_url":"https://api.github.com/users/lee-dohm/events{/privacy}","received_events_url":"https://api.github.com/users/lee-dohm/received_events","type":"User","site_admin":true},"repo":{"id":22725133,"name":"language-generic-config","full_name":"lee-dohm/language-generic-config","owner":{"login":"lee-dohm","id":1038121,"avatar_url":"https://avatars.githubusercontent.com/u/1038121?v=3","gravatar_id":"","url":"https://api.github.com/users/lee-dohm","html_url":"https://github.com/lee-dohm","followers_url":"https://api.github.com/users/lee-dohm/followers","following_url":"https://api.github.com/users/lee-dohm/following{/other_user}","gists_url":"https://api.github.com/users/lee-dohm/gists{/gist_id}","starred_url":"https://api.github.com/users/lee-dohm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lee-dohm/subscriptions","organizations_url":"https://api.github.com/users/lee-dohm/orgs","repos_url":"https://api.github.com/users/lee-dohm/repos","events_url":"https://api.github.com/users/lee-dohm/events{/privacy}","received_events_url":"https://api.github.com/users/lee-dohm/received_events","type":"User","site_admin":true},"private":false,"html_url":"https://github.com/lee-dohm/language-generic-config","description":"Basic syntax highlighting for generic config files in Atom.","fork":false,"url":"https://api.github.com/repos/lee-dohm/language-generic-config","forks_url":"https://api.github.com/repos/lee-dohm/language-generic-config/forks","keys_url":"https://api.github.com/repos/lee-dohm/language-generic-config/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lee-dohm/language-generic-config/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lee-dohm/language-generic-config/teams","hooks_url":"https://api.github.com/repos/lee-dohm/language-generic-config/hooks","issue_events_url":"https://api.github.com/repos/lee-dohm/language-generic-config/issues/events{/number}","events_url":"https://api.github.com/repos/lee-dohm/language-generic-config/events","assignees_url":"https://api.github.com/repos/lee-dohm/language-generic-config/assignees{/user}","branches_url":"https://api.github.com/repos/lee-dohm/language-generic-config/branches{/branch}","tags_url":"https://api.github.com/repos/lee-dohm/language-generic-config/tags","blobs_url":"https://api.github.com/repos/lee-dohm/language-generic-config/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lee-dohm/language-generic-config/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lee-dohm/language-generic-config/git/refs{/sha}","trees_url":"https://api.github.com/repos/lee-dohm/language-generic-config/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lee-dohm/language-generic-config/statuses/{sha}","languages_url":"https://api.github.com/repos/lee-dohm/language-generic-config/languages","stargazers_url":"https://api.github.com/repos/lee-dohm/language-generic-config/stargazers","contributors_url":"https://api.github.com/repos/lee-dohm/language-generic-config/contributors","subscribers_url":"https://api.github.com/repos/lee-dohm/language-generic-config/subscribers","subscription_url":"https://api.github.com/repos/lee-dohm/language-generic-config/subscription","commits_url":"https://api.github.com/repos/lee-dohm/language-generic-config/commits{/sha}","git_commits_url":"https://api.github.com/repos/lee-dohm/language-generic-config/git/commits{/sha}","comments_url":"https://api.github.com/repos/lee-dohm/language-generic-config/comments{/number}","issue_comment_url":"https://api.github.com/repos/lee-dohm/language-generic-config/issues/comments{/number}","contents_url":"https://api.github.com/repos/lee-dohm/language-generic-config/contents/{+path}","compare_url":"https://api.github.com/repos/lee-dohm/language-generic-config/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lee-dohm/language-generic-config/merges","archive_url":"https://api.github.com/repos/lee-dohm/language-generic-config/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lee-dohm/language-generic-config/downloads","issues_url":"https://api.github.com/repos/lee-dohm/language-generic-config/issues{/number}","pulls_url":"https://api.github.com/repos/lee-dohm/language-generic-config/pulls{/number}","milestones_url":"https://api.github.com/repos/lee-dohm/language-generic-config/milestones{/number}","notifications_url":"https://api.github.com/repos/lee-dohm/language-generic-config/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lee-dohm/language-generic-config/labels{/name}","releases_url":"https://api.github.com/repos/lee-dohm/language-generic-config/releases{/id}","deployments_url":"https://api.github.com/repos/lee-dohm/language-generic-config/deployments","created_at":"2014-08-07T14:53:07Z","updated_at":"2016-11-14T14:26:34Z","pushed_at":"2016-11-28T07:09:07Z","git_url":"git://github.com/lee-dohm/language-generic-config.git","ssh_url":"git@github.com:lee-dohm/language-generic-config.git","clone_url":"https://github.com/lee-dohm/language-generic-config.git","svn_url":"https://github.com/lee-dohm/language-generic-config","homepage":"https://atom.io/packages/language-generic-config","size":50,"stargazers_count":20,"watchers_count":20,"language":"CoffeeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":1,"forks":8,"open_issues":1,"watchers":20,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/lee-dohm/language-generic-config/pulls/9"},"html":{"href":"https://github.com/lee-dohm/language-generic-config/pull/9"},"issue":{"href":"https://api.github.com/repos/lee-dohm/language-generic-config/issues/9"},"comments":{"href":"https://api.github.com/repos/lee-dohm/language-generic-config/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/lee-dohm/language-generic-config/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/lee-dohm/language-generic-config/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/lee-dohm/language-generic-config/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/lee-dohm/language-generic-config/statuses/eb144a76a04fa4765c26bb1595a173fac11e1aef"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"lee-dohm","id":1038121,"avatar_url":"https://avatars.githubusercontent.com/u/1038121?v=3","gravatar_id":"","url":"https://api.github.com/users/lee-dohm","html_url":"https://github.com/lee-dohm","followers_url":"https://api.github.com/users/lee-dohm/followers","following_url":"https://api.github.com/users/lee-dohm/following{/other_user}","gists_url":"https://api.github.com/users/lee-dohm/gists{/gist_id}","starred_url":"https://api.github.com/users/lee-dohm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lee-dohm/subscriptions","organizations_url":"https://api.github.com/users/lee-dohm/orgs","repos_url":"https://api.github.com/users/lee-dohm/repos","events_url":"https://api.github.com/users/lee-dohm/events{/privacy}","received_events_url":"https://api.github.com/users/lee-dohm/received_events","type":"User","site_admin":true},"comments":2,"review_comments":0,"commits":1,"additions":2,"deletions":0,"changed_files":1}}
{"actor":{"display_login":"lee-dohm"}}