{"action":"created","comment":{"url":"https://api.github.com/repos/docker/docker/pulls/comments/28195347","id":28195347,"diff_hunk":"@@ -652,17 +654,27 @@ is not recursive.\n     */temp*\n     */*/temp*\n     temp?\n+    *.md\n+    !LICENCE.md\n \n The first line above `*/temp*`, would ignore all files with names starting with\n `temp` from any subdirectory below the root directory. For example, a file named\n `/somedir/temporary.txt` would be ignored. The second line `*/*/temp*`, will\n ignore files starting with name `temp` from any subdirectory that is two levels\n below the root directory. For example, the file `/somedir/subdir/temporary.txt`\n-would get ignored in this case. The last line in the above example `temp?`\n+would get ignored in this case. The third line in the above example `temp?`\n will ignore the files that match the pattern from the root directory.\n For example, the files `tempa`, `tempb` are ignored from the root directory.\n Currently there is no support for regular expressions. Formats\n-like `[^temp*]` are ignored.\n+like `[^temp*]` are ignored. The second to last line adds a rule to ignore all\n+markdown files and the subsequent line adds an exlusion rule for LICENCE.md.\n+\n+It is important to point out that the order in which the `!` lines appear will\n+influence the matching algorithm; the last line of the .dockerignore that matches\n+will determine whether a file is included or not. For example, in the above example,\n+if the last two lines were reversed then LICENSE.md would be excluded from the build\n+because the *.md would add all \"md\" files back into the ignore list. In other words,","path":"docs/sources/reference/commandline/cli.md","position":34,"original_position":34,"commit_id":"b609720b9d75f3a2934bcdb31444717f25212044","original_commit_id":"b609720b9d75f3a2934bcdb31444717f25212044","user":{"login":"duglin","id":1944671,"avatar_url":"https://avatars.githubusercontent.com/u/1944671?v=3","gravatar_id":"","url":"https://api.github.com/users/duglin","html_url":"https://github.com/duglin","followers_url":"https://api.github.com/users/duglin/followers","following_url":"https://api.github.com/users/duglin/following{/other_user}","gists_url":"https://api.github.com/users/duglin/gists{/gist_id}","starred_url":"https://api.github.com/users/duglin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duglin/subscriptions","organizations_url":"https://api.github.com/users/duglin/orgs","repos_url":"https://api.github.com/users/duglin/repos","events_url":"https://api.github.com/users/duglin/events{/privacy}","received_events_url":"https://api.github.com/users/duglin/received_events","type":"User","site_admin":false},"body":"add back-ticks ( ` ) around the file snippets on these lines.","created_at":"2015-04-11T14:30:01Z","updated_at":"2015-04-11T14:30:01Z","html_url":"https://github.com/docker/docker/pull/12245#discussion_r28195347","pull_request_url":"https://api.github.com/repos/docker/docker/pulls/12245","_links":{"self":{"href":"https://api.github.com/repos/docker/docker/pulls/comments/28195347"},"html":{"href":"https://github.com/docker/docker/pull/12245#discussion_r28195347"},"pull_request":{"href":"https://api.github.com/repos/docker/docker/pulls/12245"}}},"pull_request":{"url":"https://api.github.com/repos/docker/docker/pulls/12245","id":32986187,"html_url":"https://github.com/docker/docker/pull/12245","diff_url":"https://github.com/docker/docker/pull/12245.diff","patch_url":"https://github.com/docker/docker/pull/12245.patch","issue_url":"https://api.github.com/repos/docker/docker/issues/12245","number":12245,"state":"open","locked":false,"title":"Add support for exclusion rules in dockerignore","user":{"login":"buddhamagnet","id":35007,"avatar_url":"https://avatars.githubusercontent.com/u/35007?v=3","gravatar_id":"","url":"https://api.github.com/users/buddhamagnet","html_url":"https://github.com/buddhamagnet","followers_url":"https://api.github.com/users/buddhamagnet/followers","following_url":"https://api.github.com/users/buddhamagnet/following{/other_user}","gists_url":"https://api.github.com/users/buddhamagnet/gists{/gist_id}","starred_url":"https://api.github.com/users/buddhamagnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/buddhamagnet/subscriptions","organizations_url":"https://api.github.com/users/buddhamagnet/orgs","repos_url":"https://api.github.com/users/buddhamagnet/repos","events_url":"https://api.github.com/users/buddhamagnet/events{/privacy}","received_events_url":"https://api.github.com/users/buddhamagnet/received_events","type":"User","site_admin":false},"body":"Parallel pull request to https://github.com/docker/docker/pull/11823.","created_at":"2015-04-09T19:08:04Z","updated_at":"2015-04-11T14:30:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"89eb2456241cc94bbb4f8bc48ce4651eb8e617fa","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/docker/docker/pulls/12245/commits","review_comments_url":"https://api.github.com/repos/docker/docker/pulls/12245/comments","review_comment_url":"https://api.github.com/repos/docker/docker/pulls/comments{/number}","comments_url":"https://api.github.com/repos/docker/docker/issues/12245/comments","statuses_url":"https://api.github.com/repos/docker/docker/statuses/b609720b9d75f3a2934bcdb31444717f25212044","head":{"label":"buddhamagnet:dockerignore-ignores","ref":"dockerignore-ignores","sha":"b609720b9d75f3a2934bcdb31444717f25212044","user":{"login":"buddhamagnet","id":35007,"avatar_url":"https://avatars.githubusercontent.com/u/35007?v=3","gravatar_id":"","url":"https://api.github.com/users/buddhamagnet","html_url":"https://github.com/buddhamagnet","followers_url":"https://api.github.com/users/buddhamagnet/followers","following_url":"https://api.github.com/users/buddhamagnet/following{/other_user}","gists_url":"https://api.github.com/users/buddhamagnet/gists{/gist_id}","starred_url":"https://api.github.com/users/buddhamagnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/buddhamagnet/subscriptions","organizations_url":"https://api.github.com/users/buddhamagnet/orgs","repos_url":"https://api.github.com/users/buddhamagnet/repos","events_url":"https://api.github.com/users/buddhamagnet/events{/privacy}","received_events_url":"https://api.github.com/users/buddhamagnet/received_events","type":"User","site_admin":false},"repo":{"id":32522798,"name":"docker","full_name":"buddhamagnet/docker","owner":{"login":"buddhamagnet","id":35007,"avatar_url":"https://avatars.githubusercontent.com/u/35007?v=3","gravatar_id":"","url":"https://api.github.com/users/buddhamagnet","html_url":"https://github.com/buddhamagnet","followers_url":"https://api.github.com/users/buddhamagnet/followers","following_url":"https://api.github.com/users/buddhamagnet/following{/other_user}","gists_url":"https://api.github.com/users/buddhamagnet/gists{/gist_id}","starred_url":"https://api.github.com/users/buddhamagnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/buddhamagnet/subscriptions","organizations_url":"https://api.github.com/users/buddhamagnet/orgs","repos_url":"https://api.github.com/users/buddhamagnet/repos","events_url":"https://api.github.com/users/buddhamagnet/events{/privacy}","received_events_url":"https://api.github.com/users/buddhamagnet/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/buddhamagnet/docker","description":"Docker - the open-source application container engine","fork":true,"url":"https://api.github.com/repos/buddhamagnet/docker","forks_url":"https://api.github.com/repos/buddhamagnet/docker/forks","keys_url":"https://api.github.com/repos/buddhamagnet/docker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/buddhamagnet/docker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/buddhamagnet/docker/teams","hooks_url":"https://api.github.com/repos/buddhamagnet/docker/hooks","issue_events_url":"https://api.github.com/repos/buddhamagnet/docker/issues/events{/number}","events_url":"https://api.github.com/repos/buddhamagnet/docker/events","assignees_url":"https://api.github.com/repos/buddhamagnet/docker/assignees{/user}","branches_url":"https://api.github.com/repos/buddhamagnet/docker/branches{/branch}","tags_url":"https://api.github.com/repos/buddhamagnet/docker/tags","blobs_url":"https://api.github.com/repos/buddhamagnet/docker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/buddhamagnet/docker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/buddhamagnet/docker/git/refs{/sha}","trees_url":"https://api.github.com/repos/buddhamagnet/docker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/buddhamagnet/docker/statuses/{sha}","languages_url":"https://api.github.com/repos/buddhamagnet/docker/languages","stargazers_url":"https://api.github.com/repos/buddhamagnet/docker/stargazers","contributors_url":"https://api.github.com/repos/buddhamagnet/docker/contributors","subscribers_url":"https://api.github.com/repos/buddhamagnet/docker/subscribers","subscription_url":"https://api.github.com/repos/buddhamagnet/docker/subscription","commits_url":"https://api.github.com/repos/buddhamagnet/docker/commits{/sha}","git_commits_url":"https://api.github.com/repos/buddhamagnet/docker/git/commits{/sha}","comments_url":"https://api.github.com/repos/buddhamagnet/docker/comments{/number}","issue_comment_url":"https://api.github.com/repos/buddhamagnet/docker/issues/comments{/number}","contents_url":"https://api.github.com/repos/buddhamagnet/docker/contents/{+path}","compare_url":"https://api.github.com/repos/buddhamagnet/docker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/buddhamagnet/docker/merges","archive_url":"https://api.github.com/repos/buddhamagnet/docker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/buddhamagnet/docker/downloads","issues_url":"https://api.github.com/repos/buddhamagnet/docker/issues{/number}","pulls_url":"https://api.github.com/repos/buddhamagnet/docker/pulls{/number}","milestones_url":"https://api.github.com/repos/buddhamagnet/docker/milestones{/number}","notifications_url":"https://api.github.com/repos/buddhamagnet/docker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/buddhamagnet/docker/labels{/name}","releases_url":"https://api.github.com/repos/buddhamagnet/docker/releases{/id}","created_at":"2015-03-19T13:26:22Z","updated_at":"2015-04-10T12:33:23Z","pushed_at":"2015-04-11T14:13:54Z","git_url":"git://github.com/buddhamagnet/docker.git","ssh_url":"git@github.com:buddhamagnet/docker.git","clone_url":"https://github.com/buddhamagnet/docker.git","svn_url":"https://github.com/buddhamagnet/docker","homepage":"http://www.docker.com","size":48473,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"docker:master","ref":"master","sha":"e3c1cc8d77ea4be7d9e2c0041590a9da7d6920f6","user":{"login":"docker","id":5429470,"avatar_url":"https://avatars.githubusercontent.com/u/5429470?v=3","gravatar_id":"","url":"https://api.github.com/users/docker","html_url":"https://github.com/docker","followers_url":"https://api.github.com/users/docker/followers","following_url":"https://api.github.com/users/docker/following{/other_user}","gists_url":"https://api.github.com/users/docker/gists{/gist_id}","starred_url":"https://api.github.com/users/docker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/docker/subscriptions","organizations_url":"https://api.github.com/users/docker/orgs","repos_url":"https://api.github.com/users/docker/repos","events_url":"https://api.github.com/users/docker/events{/privacy}","received_events_url":"https://api.github.com/users/docker/received_events","type":"Organization","site_admin":false},"repo":{"id":7691631,"name":"docker","full_name":"docker/docker","owner":{"login":"docker","id":5429470,"avatar_url":"https://avatars.githubusercontent.com/u/5429470?v=3","gravatar_id":"","url":"https://api.github.com/users/docker","html_url":"https://github.com/docker","followers_url":"https://api.github.com/users/docker/followers","following_url":"https://api.github.com/users/docker/following{/other_user}","gists_url":"https://api.github.com/users/docker/gists{/gist_id}","starred_url":"https://api.github.com/users/docker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/docker/subscriptions","organizations_url":"https://api.github.com/users/docker/orgs","repos_url":"https://api.github.com/users/docker/repos","events_url":"https://api.github.com/users/docker/events{/privacy}","received_events_url":"https://api.github.com/users/docker/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/docker/docker","description":"Docker - the open-source application container engine","fork":false,"url":"https://api.github.com/repos/docker/docker","forks_url":"https://api.github.com/repos/docker/docker/forks","keys_url":"https://api.github.com/repos/docker/docker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/docker/docker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/docker/docker/teams","hooks_url":"https://api.github.com/repos/docker/docker/hooks","issue_events_url":"https://api.github.com/repos/docker/docker/issues/events{/number}","events_url":"https://api.github.com/repos/docker/docker/events","assignees_url":"https://api.github.com/repos/docker/docker/assignees{/user}","branches_url":"https://api.github.com/repos/docker/docker/branches{/branch}","tags_url":"https://api.github.com/repos/docker/docker/tags","blobs_url":"https://api.github.com/repos/docker/docker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/docker/docker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/docker/docker/git/refs{/sha}","trees_url":"https://api.github.com/repos/docker/docker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/docker/docker/statuses/{sha}","languages_url":"https://api.github.com/repos/docker/docker/languages","stargazers_url":"https://api.github.com/repos/docker/docker/stargazers","contributors_url":"https://api.github.com/repos/docker/docker/contributors","subscribers_url":"https://api.github.com/repos/docker/docker/subscribers","subscription_url":"https://api.github.com/repos/docker/docker/subscription","commits_url":"https://api.github.com/repos/docker/docker/commits{/sha}","git_commits_url":"https://api.github.com/repos/docker/docker/git/commits{/sha}","comments_url":"https://api.github.com/repos/docker/docker/comments{/number}","issue_comment_url":"https://api.github.com/repos/docker/docker/issues/comments{/number}","contents_url":"https://api.github.com/repos/docker/docker/contents/{+path}","compare_url":"https://api.github.com/repos/docker/docker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/docker/docker/merges","archive_url":"https://api.github.com/repos/docker/docker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/docker/docker/downloads","issues_url":"https://api.github.com/repos/docker/docker/issues{/number}","pulls_url":"https://api.github.com/repos/docker/docker/pulls{/number}","milestones_url":"https://api.github.com/repos/docker/docker/milestones{/number}","notifications_url":"https://api.github.com/repos/docker/docker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/docker/docker/labels{/name}","releases_url":"https://api.github.com/repos/docker/docker/releases{/id}","created_at":"2013-01-18T18:10:57Z","updated_at":"2015-04-11T14:27:37Z","pushed_at":"2015-04-11T14:27:36Z","git_url":"git://github.com/docker/docker.git","ssh_url":"git@github.com:docker/docker.git","clone_url":"https://github.com/docker/docker.git","svn_url":"https://github.com/docker/docker","homepage":"http://www.docker.com","size":173650,"stargazers_count":20725,"watchers_count":20725,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":4716,"mirror_url":null,"open_issues_count":895,"forks":4716,"open_issues":895,"watchers":20725,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/docker/docker/pulls/12245"},"html":{"href":"https://github.com/docker/docker/pull/12245"},"issue":{"href":"https://api.github.com/repos/docker/docker/issues/12245"},"comments":{"href":"https://api.github.com/repos/docker/docker/issues/12245/comments"},"review_comments":{"href":"https://api.github.com/repos/docker/docker/pulls/12245/comments"},"review_comment":{"href":"https://api.github.com/repos/docker/docker/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/docker/docker/pulls/12245/commits"},"statuses":{"href":"https://api.github.com/repos/docker/docker/statuses/b609720b9d75f3a2934bcdb31444717f25212044"}}}}