{"action":"created","comment":{"url":"https://api.github.com/repos/ipfs/go-ipfs/pulls/comments/33914006","id":33914006,"diff_hunk":"@@ -0,0 +1,19 @@\n+// +build !windows\n+\n+package files\n+\n+import (\n+\t\"path/filepath\"\n+\t\"strings\"\n+)\n+\n+func IsHidden(f File) bool {\n+\n+\tfName := filepath.Base(f.FileName())\n+\n+\tif strings.HasPrefix(fName, \".\") && len(fName) > 1 {","path":"commands/files/is_hidden.go","position":14,"original_position":14,"commit_id":"e776f165a15e2e4c4c154dea07ce5c647fa7c194","original_commit_id":"e776f165a15e2e4c4c154dea07ce5c647fa7c194","user":{"login":"jbenet","id":138401,"avatar_url":"https://avatars.githubusercontent.com/u/138401?v=3","gravatar_id":"","url":"https://api.github.com/users/jbenet","html_url":"https://github.com/jbenet","followers_url":"https://api.github.com/users/jbenet/followers","following_url":"https://api.github.com/users/jbenet/following{/other_user}","gists_url":"https://api.github.com/users/jbenet/gists{/gist_id}","starred_url":"https://api.github.com/users/jbenet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbenet/subscriptions","organizations_url":"https://api.github.com/users/jbenet/orgs","repos_url":"https://api.github.com/users/jbenet/repos","events_url":"https://api.github.com/users/jbenet/events{/privacy}","received_events_url":"https://api.github.com/users/jbenet/received_events","type":"User","site_admin":false},"body":"sounds good :+1: ","created_at":"2015-07-06T08:27:34Z","updated_at":"2015-07-06T08:27:34Z","html_url":"https://github.com/ipfs/go-ipfs/pull/1448#discussion_r33914006","pull_request_url":"https://api.github.com/repos/ipfs/go-ipfs/pulls/1448","_links":{"self":{"href":"https://api.github.com/repos/ipfs/go-ipfs/pulls/comments/33914006"},"html":{"href":"https://github.com/ipfs/go-ipfs/pull/1448#discussion_r33914006"},"pull_request":{"href":"https://api.github.com/repos/ipfs/go-ipfs/pulls/1448"}}},"pull_request":{"url":"https://api.github.com/repos/ipfs/go-ipfs/pulls/1448","id":39239680,"html_url":"https://github.com/ipfs/go-ipfs/pull/1448","diff_url":"https://github.com/ipfs/go-ipfs/pull/1448.diff","patch_url":"https://github.com/ipfs/go-ipfs/pull/1448.patch","issue_url":"https://api.github.com/repos/ipfs/go-ipfs/issues/1448","number":1448,"state":"open","locked":false,"title":"Add ignore and hidden file support to add","user":{"login":"gatesvp","id":319590,"avatar_url":"https://avatars.githubusercontent.com/u/319590?v=3","gravatar_id":"","url":"https://api.github.com/users/gatesvp","html_url":"https://github.com/gatesvp","followers_url":"https://api.github.com/users/gatesvp/followers","following_url":"https://api.github.com/users/gatesvp/following{/other_user}","gists_url":"https://api.github.com/users/gatesvp/gists{/gist_id}","starred_url":"https://api.github.com/users/gatesvp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gatesvp/subscriptions","organizations_url":"https://api.github.com/users/gatesvp/orgs","repos_url":"https://api.github.com/users/gatesvp/repos","events_url":"https://api.github.com/users/gatesvp/events{/privacy}","received_events_url":"https://api.github.com/users/gatesvp/received_events","type":"User","site_admin":false},"body":"#653 support, attempt number 4.\r\n\r\nLicense: MIT\r\nSigned-off-by: Gaetan Voyer-Perrault <gatesvp@gmail.com>","created_at":"2015-07-06T06:43:40Z","updated_at":"2015-07-06T08:27:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"088824cce1006449964c6db5aacc2f5eb4b6d046","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ipfs/go-ipfs/pulls/1448/commits","review_comments_url":"https://api.github.com/repos/ipfs/go-ipfs/pulls/1448/comments","review_comment_url":"https://api.github.com/repos/ipfs/go-ipfs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ipfs/go-ipfs/issues/1448/comments","statuses_url":"https://api.github.com/repos/ipfs/go-ipfs/statuses/e776f165a15e2e4c4c154dea07ce5c647fa7c194","head":{"label":"gatesvp:master","ref":"master","sha":"e776f165a15e2e4c4c154dea07ce5c647fa7c194","user":{"login":"gatesvp","id":319590,"avatar_url":"https://avatars.githubusercontent.com/u/319590?v=3","gravatar_id":"","url":"https://api.github.com/users/gatesvp","html_url":"https://github.com/gatesvp","followers_url":"https://api.github.com/users/gatesvp/followers","following_url":"https://api.github.com/users/gatesvp/following{/other_user}","gists_url":"https://api.github.com/users/gatesvp/gists{/gist_id}","starred_url":"https://api.github.com/users/gatesvp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gatesvp/subscriptions","organizations_url":"https://api.github.com/users/gatesvp/orgs","repos_url":"https://api.github.com/users/gatesvp/repos","events_url":"https://api.github.com/users/gatesvp/events{/privacy}","received_events_url":"https://api.github.com/users/gatesvp/received_events","type":"User","site_admin":false},"repo":{"id":23377578,"name":"go-ipfs","full_name":"gatesvp/go-ipfs","owner":{"login":"gatesvp","id":319590,"avatar_url":"https://avatars.githubusercontent.com/u/319590?v=3","gravatar_id":"","url":"https://api.github.com/users/gatesvp","html_url":"https://github.com/gatesvp","followers_url":"https://api.github.com/users/gatesvp/followers","following_url":"https://api.github.com/users/gatesvp/following{/other_user}","gists_url":"https://api.github.com/users/gatesvp/gists{/gist_id}","starred_url":"https://api.github.com/users/gatesvp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gatesvp/subscriptions","organizations_url":"https://api.github.com/users/gatesvp/orgs","repos_url":"https://api.github.com/users/gatesvp/repos","events_url":"https://api.github.com/users/gatesvp/events{/privacy}","received_events_url":"https://api.github.com/users/gatesvp/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gatesvp/go-ipfs","description":"ipfs implementation in go","fork":true,"url":"https://api.github.com/repos/gatesvp/go-ipfs","forks_url":"https://api.github.com/repos/gatesvp/go-ipfs/forks","keys_url":"https://api.github.com/repos/gatesvp/go-ipfs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gatesvp/go-ipfs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gatesvp/go-ipfs/teams","hooks_url":"https://api.github.com/repos/gatesvp/go-ipfs/hooks","issue_events_url":"https://api.github.com/repos/gatesvp/go-ipfs/issues/events{/number}","events_url":"https://api.github.com/repos/gatesvp/go-ipfs/events","assignees_url":"https://api.github.com/repos/gatesvp/go-ipfs/assignees{/user}","branches_url":"https://api.github.com/repos/gatesvp/go-ipfs/branches{/branch}","tags_url":"https://api.github.com/repos/gatesvp/go-ipfs/tags","blobs_url":"https://api.github.com/repos/gatesvp/go-ipfs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gatesvp/go-ipfs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gatesvp/go-ipfs/git/refs{/sha}","trees_url":"https://api.github.com/repos/gatesvp/go-ipfs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gatesvp/go-ipfs/statuses/{sha}","languages_url":"https://api.github.com/repos/gatesvp/go-ipfs/languages","stargazers_url":"https://api.github.com/repos/gatesvp/go-ipfs/stargazers","contributors_url":"https://api.github.com/repos/gatesvp/go-ipfs/contributors","subscribers_url":"https://api.github.com/repos/gatesvp/go-ipfs/subscribers","subscription_url":"https://api.github.com/repos/gatesvp/go-ipfs/subscription","commits_url":"https://api.github.com/repos/gatesvp/go-ipfs/commits{/sha}","git_commits_url":"https://api.github.com/repos/gatesvp/go-ipfs/git/commits{/sha}","comments_url":"https://api.github.com/repos/gatesvp/go-ipfs/comments{/number}","issue_comment_url":"https://api.github.com/repos/gatesvp/go-ipfs/issues/comments{/number}","contents_url":"https://api.github.com/repos/gatesvp/go-ipfs/contents/{+path}","compare_url":"https://api.github.com/repos/gatesvp/go-ipfs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gatesvp/go-ipfs/merges","archive_url":"https://api.github.com/repos/gatesvp/go-ipfs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gatesvp/go-ipfs/downloads","issues_url":"https://api.github.com/repos/gatesvp/go-ipfs/issues{/number}","pulls_url":"https://api.github.com/repos/gatesvp/go-ipfs/pulls{/number}","milestones_url":"https://api.github.com/repos/gatesvp/go-ipfs/milestones{/number}","notifications_url":"https://api.github.com/repos/gatesvp/go-ipfs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gatesvp/go-ipfs/labels{/name}","releases_url":"https://api.github.com/repos/gatesvp/go-ipfs/releases{/id}","created_at":"2014-08-27T05:11:22Z","updated_at":"2015-05-07T04:46:55Z","pushed_at":"2015-07-06T06:39:47Z","git_url":"git://github.com/gatesvp/go-ipfs.git","ssh_url":"git@github.com:gatesvp/go-ipfs.git","clone_url":"https://github.com/gatesvp/go-ipfs.git","svn_url":"https://github.com/gatesvp/go-ipfs","homepage":"http://ipfs.io/","size":18118,"stargazers_count":0,"watchers_count":0,"language":"Go","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":"ipfs:master","ref":"master","sha":"1694b7913fb1f80f6d1820eb66b508f1a567fdda","user":{"login":"ipfs","id":10536621,"avatar_url":"https://avatars.githubusercontent.com/u/10536621?v=3","gravatar_id":"","url":"https://api.github.com/users/ipfs","html_url":"https://github.com/ipfs","followers_url":"https://api.github.com/users/ipfs/followers","following_url":"https://api.github.com/users/ipfs/following{/other_user}","gists_url":"https://api.github.com/users/ipfs/gists{/gist_id}","starred_url":"https://api.github.com/users/ipfs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ipfs/subscriptions","organizations_url":"https://api.github.com/users/ipfs/orgs","repos_url":"https://api.github.com/users/ipfs/repos","events_url":"https://api.github.com/users/ipfs/events{/privacy}","received_events_url":"https://api.github.com/users/ipfs/received_events","type":"Organization","site_admin":false},"repo":{"id":21233191,"name":"go-ipfs","full_name":"ipfs/go-ipfs","owner":{"login":"ipfs","id":10536621,"avatar_url":"https://avatars.githubusercontent.com/u/10536621?v=3","gravatar_id":"","url":"https://api.github.com/users/ipfs","html_url":"https://github.com/ipfs","followers_url":"https://api.github.com/users/ipfs/followers","following_url":"https://api.github.com/users/ipfs/following{/other_user}","gists_url":"https://api.github.com/users/ipfs/gists{/gist_id}","starred_url":"https://api.github.com/users/ipfs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ipfs/subscriptions","organizations_url":"https://api.github.com/users/ipfs/orgs","repos_url":"https://api.github.com/users/ipfs/repos","events_url":"https://api.github.com/users/ipfs/events{/privacy}","received_events_url":"https://api.github.com/users/ipfs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ipfs/go-ipfs","description":"ipfs implementation in go","fork":false,"url":"https://api.github.com/repos/ipfs/go-ipfs","forks_url":"https://api.github.com/repos/ipfs/go-ipfs/forks","keys_url":"https://api.github.com/repos/ipfs/go-ipfs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ipfs/go-ipfs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ipfs/go-ipfs/teams","hooks_url":"https://api.github.com/repos/ipfs/go-ipfs/hooks","issue_events_url":"https://api.github.com/repos/ipfs/go-ipfs/issues/events{/number}","events_url":"https://api.github.com/repos/ipfs/go-ipfs/events","assignees_url":"https://api.github.com/repos/ipfs/go-ipfs/assignees{/user}","branches_url":"https://api.github.com/repos/ipfs/go-ipfs/branches{/branch}","tags_url":"https://api.github.com/repos/ipfs/go-ipfs/tags","blobs_url":"https://api.github.com/repos/ipfs/go-ipfs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ipfs/go-ipfs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ipfs/go-ipfs/git/refs{/sha}","trees_url":"https://api.github.com/repos/ipfs/go-ipfs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ipfs/go-ipfs/statuses/{sha}","languages_url":"https://api.github.com/repos/ipfs/go-ipfs/languages","stargazers_url":"https://api.github.com/repos/ipfs/go-ipfs/stargazers","contributors_url":"https://api.github.com/repos/ipfs/go-ipfs/contributors","subscribers_url":"https://api.github.com/repos/ipfs/go-ipfs/subscribers","subscription_url":"https://api.github.com/repos/ipfs/go-ipfs/subscription","commits_url":"https://api.github.com/repos/ipfs/go-ipfs/commits{/sha}","git_commits_url":"https://api.github.com/repos/ipfs/go-ipfs/git/commits{/sha}","comments_url":"https://api.github.com/repos/ipfs/go-ipfs/comments{/number}","issue_comment_url":"https://api.github.com/repos/ipfs/go-ipfs/issues/comments{/number}","contents_url":"https://api.github.com/repos/ipfs/go-ipfs/contents/{+path}","compare_url":"https://api.github.com/repos/ipfs/go-ipfs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ipfs/go-ipfs/merges","archive_url":"https://api.github.com/repos/ipfs/go-ipfs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ipfs/go-ipfs/downloads","issues_url":"https://api.github.com/repos/ipfs/go-ipfs/issues{/number}","pulls_url":"https://api.github.com/repos/ipfs/go-ipfs/pulls{/number}","milestones_url":"https://api.github.com/repos/ipfs/go-ipfs/milestones{/number}","notifications_url":"https://api.github.com/repos/ipfs/go-ipfs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ipfs/go-ipfs/labels{/name}","releases_url":"https://api.github.com/repos/ipfs/go-ipfs/releases{/id}","created_at":"2014-06-26T08:14:34Z","updated_at":"2015-07-05T02:47:51Z","pushed_at":"2015-07-06T06:43:40Z","git_url":"git://github.com/ipfs/go-ipfs.git","ssh_url":"git@github.com:ipfs/go-ipfs.git","clone_url":"https://github.com/ipfs/go-ipfs.git","svn_url":"https://github.com/ipfs/go-ipfs","homepage":"https://github.com/ipfs/ipfs","size":33094,"stargazers_count":628,"watchers_count":628,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":112,"mirror_url":null,"open_issues_count":286,"forks":112,"open_issues":286,"watchers":628,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ipfs/go-ipfs/pulls/1448"},"html":{"href":"https://github.com/ipfs/go-ipfs/pull/1448"},"issue":{"href":"https://api.github.com/repos/ipfs/go-ipfs/issues/1448"},"comments":{"href":"https://api.github.com/repos/ipfs/go-ipfs/issues/1448/comments"},"review_comments":{"href":"https://api.github.com/repos/ipfs/go-ipfs/pulls/1448/comments"},"review_comment":{"href":"https://api.github.com/repos/ipfs/go-ipfs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ipfs/go-ipfs/pulls/1448/commits"},"statuses":{"href":"https://api.github.com/repos/ipfs/go-ipfs/statuses/e776f165a15e2e4c4c154dea07ce5c647fa7c194"}}}}