{"action":"created","comment":{"url":"https://api.github.com/repos/ipfs/go-ipfs/pulls/comments/38382968","id":38382968,"diff_hunk":"@@ -0,0 +1,638 @@\n+package commands\n+\n+import (\n+\t\"bytes\"\n+\t\"errors\"\n+\t\"fmt\"\n+\t\"io\"\n+\t\"os\"\n+\tgopath \"path\"\n+\t\"strings\"\n+\n+\tkey \"github.com/ipfs/go-ipfs/blocks/key\"\n+\tcmds \"github.com/ipfs/go-ipfs/commands\"\n+\tdag \"github.com/ipfs/go-ipfs/merkledag\"\n+\tmfs \"github.com/ipfs/go-ipfs/mfs\"\n+\tpath \"github.com/ipfs/go-ipfs/path\"\n+\tft \"github.com/ipfs/go-ipfs/unixfs\"\n+\tu \"github.com/ipfs/go-ipfs/util\"\n+\n+\tcontext \"github.com/ipfs/go-ipfs/Godeps/_workspace/src/golang.org/x/net/context\"\n+)\n+\n+var log = u.Logger(\"cmds/mfs\")\n+\n+type mfsMountListing struct {\n+\tMounts []mfs.RootListing\n+}\n+\n+var MfsCmd = &cmds.Command{\n+\tHelptext: cmds.HelpText{\n+\t\tTagline: \"Manipulate mutable filesystems\",\n+\t\tShortDescription: `\n+Mfs is an API for manipulating ipfs objects as if they were a unix filesystem.\n+They can be seeded with an initial root hash, or by default are an empty directory.\n+\n+'Sessions' may be created with the create command. Once created, they show up in\n+the output of the base mfs command.\n+\n+NOTICE:\n+This API is currently experimental, likely to change, and may potentially be\n+unstable. This notice will be removed when that is no longer the case. Feedback\n+on how this API could be improved is very welcome on the following issue:\n+https://github.com/ipfs/go-ipfs/issues/1607\n+\t\t`,\n+\t},\n+\tSubcommands: map[string]*cmds.Command{\n+\t\t\"create\": MfsCreateCmd,\n+\t\t\"close\":  MfsCloseCmd,\n+\t\t\"put\":    MfsPutCmd,\n+\t\t\"read\":   MfsReadCmd,\n+\t\t\"write\":  MfsWriteCmd,\n+\t\t\"mv\":     MfsMvCmd,\n+\t\t\"ls\":     MfsLsCmd,\n+\t\t\"mkdir\":  MfsMkdirCmd,\n+\t\t\"rm\":     MfsRmCmd,\n+\t},\n+\tArguments: []cmds.Argument{\n+\t\tcmds.StringArg(\"name\", false, false, \"name of filesystem to show info for\"),\n+\t},\n+\tRun: func(req cmds.Request, res cmds.Response) {\n+\t\tnode, err := req.InvocContext().GetNode()\n+\t\tif err != nil {\n+\t\t\tres.SetError(err, cmds.ErrNormal)\n+\t\t\treturn\n+\t\t}\n+\n+\t\tif node.Mfs == nil {\n+\t\t\tres.SetError(cmds.ErrNotOnline, cmds.ErrNormal)\n+\t\t\treturn\n+\t\t}\n+\n+\t\tif len(req.Arguments()) > 0 {\n+\t\t\tsession := req.Arguments()[0]\n+\t\t\t// if a session is specified, print out just the root hash for that fs\n+\t\t\troot, err := node.Mfs.GetRoot(session)\n+\t\t\tif err != nil {\n+\t\t\t\tres.SetError(err, cmds.ErrNormal)\n+\t\t\t\treturn\n+\t\t\t}\n+\n+\t\t\tnd, err := root.GetValue().GetNode()\n+\t\t\tif err != nil {\n+\t\t\t\tres.SetError(err, cmds.ErrNormal)\n+\t\t\t\treturn\n+\t\t\t}\n+\n+\t\t\tk, err := nd.Key()\n+\t\t\tif err != nil {\n+\t\t\t\tres.SetError(err, cmds.ErrNormal)\n+\t\t\t\treturn\n+\t\t\t}\n+\n+\t\t\tres.SetOutput(&mfsMountListing{[]mfs.RootListing{mfs.RootListing{Hash: k}}})\n+\t\t\treturn\n+\t\t}\n+\n+\t\t// Default: list all roots\n+\t\troots := node.Mfs.ListRoots()\n+\n+\t\tres.SetOutput(&mfsMountListing{roots})\n+\t},\n+\tMarshalers: cmds.MarshalerMap{\n+\t\tcmds.Text: func(res cmds.Response) (io.Reader, error) {\n+\t\t\tout := res.Output().(*mfsMountListing)\n+\t\t\tif len(out.Mounts) == 1 && out.Mounts[0].Name == \"\" {\n+\t\t\t\t// a session was specified, print out just the hash\n+\t\t\t\treturn strings.NewReader(out.Mounts[0].Hash.B58String()), nil\n+\t\t\t}\n+\n+\t\t\tbuf := new(bytes.Buffer)\n+\t\t\tfor _, o := range out.Mounts {\n+\t\t\t\tfmt.Fprintf(buf, \"%s - %s\\n\", o.Name, o.Hash)\n+\t\t\t}\n+\t\t\treturn buf, nil\n+\t\t},\n+\t},\n+\tType: mfsMountListing{},\n+}\n+\n+var MfsCreateCmd = &cmds.Command{\n+\tHelptext: cmds.HelpText{\n+\t\tTagline: \"Create a new mutable filesystem\",\n+\t\tShortDescription: `\n+Creates a new mutable filesystem based on an optional root hash.\n+\n+Currently, it creates a filesystem with no special publish actions,\n+all changes are merely propagated to the root, and are reflected in the hash\n+displayed by 'ipfs mfs'.`,\n+\t},\n+\n+\tArguments: []cmds.Argument{\n+\t\tcmds.StringArg(\"name\", true, false, \"name of filesystem to create\"),\n+\t},\n+\tOptions: []cmds.Option{\n+\t\tcmds.StringOption(\"r\", \"root\", \"root object to base new filesystem on\"),\n+\t},\n+\tRun: func(req cmds.Request, res cmds.Response) {\n+\t\tnode, err := req.InvocContext().GetNode()\n+\t\tif err != nil {\n+\t\t\tres.SetError(err, cmds.ErrNormal)\n+\t\t\treturn\n+\t\t}\n+\n+\t\tif node.Mfs == nil {\n+\t\t\tres.SetError(cmds.ErrNotOnline, cmds.ErrNormal)\n+\t\t\treturn\n+\t\t}\n+\n+\t\tname := req.Arguments()[0]\n+\t\tif name == \"\" {\n+\t\t\tres.SetError(errors.New(\"cannot have unnamed filesystem\"), cmds.ErrNormal)\n+\t\t\treturn\n+\t\t}\n+\n+\t\trtkey, found, err := req.Option(\"root\").String()\n+\t\tif err != nil {\n+\t\t\tres.SetError(err, cmds.ErrNormal)\n+\t\t}\n+\n+\t\tvar rootnode *dag.Node\n+\t\tif found {\n+\t\t\tk := key.B58KeyDecode(rtkey)\n+\t\t\tif k == \"\" {\n+\t\t\t\tres.SetError(fmt.Errorf(\"incorrectly formatted key: %s\", rtkey), cmds.ErrNormal)\n+\t\t\t\treturn\n+\t\t\t}\n+\n+\t\t\tnd, err := node.DAG.Get(req.Context(), k)\n+\t\t\tif err != nil {\n+\t\t\t\tres.SetError(err, cmds.ErrNormal)\n+\t\t\t\treturn\n+\t\t\t}\n+\n+\t\t\trootnode = nd\n+\t\t} else {\n+\t\t\trootnode = &dag.Node{Data: ft.FolderPBData()}\n+\t\t}\n+\n+\t\t_, err = node.Mfs.NewRoot(name, rootnode, func(_ context.Context, _ key.Key) error { return nil })\n+\t\tif err != nil {\n+\t\t\tres.SetError(err, cmds.ErrNormal)\n+\t\t\treturn\n+\t\t}\n+\t},\n+}\n+\n+type Object struct {\n+\tHash string\n+}\n+\n+var MfsCloseCmd = &cmds.Command{\n+\tHelptext: cmds.HelpText{\n+\t\tTagline:          \"Close an open filesystem\",\n+\t\tShortDescription: ``,\n+\t},\n+\n+\tArguments: []cmds.Argument{\n+\t\tcmds.StringArg(\"name\", true, false, \"name of filesystem to close\"),\n+\t},\n+\tRun: func(req cmds.Request, res cmds.Response) {\n+\t\tnode, err := req.InvocContext().GetNode()\n+\t\tif err != nil {\n+\t\t\tres.SetError(err, cmds.ErrNormal)\n+\t\t\treturn\n+\t\t}\n+\n+\t\tif node.Mfs == nil {\n+\t\t\tres.SetError(cmds.ErrNotOnline, cmds.ErrNormal)\n+\t\t\treturn\n+\t\t}\n+\n+\t\tname := req.Arguments()[0]\n+\n+\t\tfinal, err := node.Mfs.CloseRoot(name)\n+\t\tif err != nil {\n+\t\t\tres.SetError(err, cmds.ErrNormal)\n+\t\t\treturn\n+\t\t}\n+\n+\t\tres.SetOutput(&Object{Hash: final.B58String()})\n+\t},\n+\tMarshalers: cmds.MarshalerMap{\n+\t\tcmds.Text: func(res cmds.Response) (io.Reader, error) {\n+\t\t\tout := res.Output().(*Object)\n+\t\t\treturn strings.NewReader(out.Hash), nil\n+\t\t},\n+\t},\n+\tType: Object{},\n+}\n+\n+type MfsLsOutput struct {\n+\tEntries []mfs.NodeListing\n+}\n+\n+var MfsLsCmd = &cmds.Command{\n+\tHelptext: cmds.HelpText{\n+\t\tTagline:          \"List directories inside a filesystem\",\n+\t\tShortDescription: ``,\n+\t},\n+\tArguments: []cmds.Argument{\n+\t\tcmds.StringArg(\"path\", true, false, \"path to show listing for\"),\n+\t},\n+\tOptions: []cmds.Option{\n+\t\tcmds.BoolOption(\"l\", \"use long listing format\"),\n+\t},\n+\tRun: func(req cmds.Request, res cmds.Response) {\n+\t\tpath := req.Arguments()[0]\n+\t\tnd, err := req.InvocContext().GetNode()\n+\t\tif err != nil {\n+\t\t\tres.SetError(err, cmds.ErrNormal)\n+\t\t\treturn\n+\t\t}\n+\n+\t\tfsn, err := mfs.Lookup(nd.Mfs, path)\n+\t\tif err != nil {\n+\t\t\tres.SetError(err, cmds.ErrNormal)\n+\t\t\treturn\n+\t\t}\n+\n+\t\tswitch fsn := fsn.(type) {\n+\t\tcase *mfs.Directory:\n+\t\t\tlisting, err := fsn.List()\n+\t\t\tif err != nil {\n+\t\t\t\tres.SetError(err, cmds.ErrNormal)\n+\t\t\t\treturn\n+\t\t\t}\n+\t\t\tres.SetOutput(&MfsLsOutput{listing})\n+\t\t\treturn\n+\t\tcase *mfs.File:\n+\t\t\tparts := strings.Split(path, \"/\")\n+\t\t\tname := parts[len(parts)-1]\n+\t\t\tout := &MfsLsOutput{[]mfs.NodeListing{mfs.NodeListing{Name: name, Type: 1}}}\n+\t\t\tres.SetOutput(out)\n+\t\t\treturn\n+\t\tdefault:\n+\t\t\tres.SetError(errors.New(\"unrecognized type\"), cmds.ErrNormal)\n+\t\t}\n+\t},\n+\tMarshalers: cmds.MarshalerMap{\n+\t\tcmds.Text: func(res cmds.Response) (io.Reader, error) {\n+\t\t\tout := res.Output().(*MfsLsOutput)\n+\t\t\tbuf := new(bytes.Buffer)\n+\t\t\tlong, _, _ := res.Request().Option(\"l\").Bool()\n+\n+\t\t\tfor _, o := range out.Entries {\n+\t\t\t\tif long {\n+\t\t\t\t\tfmt.Fprintf(buf, \"%s\\t%s\\t%d\\n\", o.Name, o.Hash, o.Size)\n+\t\t\t\t} else {\n+\t\t\t\t\tfmt.Fprintf(buf, \"%s\\n\", o.Name)\n+\t\t\t\t}\n+\t\t\t}\n+\t\t\treturn buf, nil\n+\t\t},\n+\t},\n+\tType: MfsLsOutput{},\n+}\n+\n+var MfsPutCmd = &cmds.Command{\n+\tHelptext: cmds.HelpText{\n+\t\tTagline: \"import a given file into a filesystem\",\n+\t\tShortDescription: `\n+Mfs 'put' takes a file that already exists in ipfs and imports it into a\n+given mfs filesystem.\n+\t\t`,\n+\t},\n+\n+\tArguments: []cmds.Argument{\n+\t\tcmds.StringArg(\"object\", true, false, \"ipfspath of object to import\"),","path":"core/commands/mfs/mfs.go","position":308,"original_position":308,"commit_id":"4eaf136bd5f9cfa74d1a91169bcc5176132b7ed1","original_commit_id":"4eaf136bd5f9cfa74d1a91169bcc5176132b7ed1","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":"- [ ] maybe `ipfs-path`","created_at":"2015-09-01T03:32:46Z","updated_at":"2015-09-01T03:32:46Z","html_url":"https://github.com/ipfs/go-ipfs/pull/1550#discussion_r38382968","pull_request_url":"https://api.github.com/repos/ipfs/go-ipfs/pulls/1550","_links":{"self":{"href":"https://api.github.com/repos/ipfs/go-ipfs/pulls/comments/38382968"},"html":{"href":"https://github.com/ipfs/go-ipfs/pull/1550#discussion_r38382968"},"pull_request":{"href":"https://api.github.com/repos/ipfs/go-ipfs/pulls/1550"}}},"pull_request":{"url":"https://api.github.com/repos/ipfs/go-ipfs/pulls/1550","id":41502346,"html_url":"https://github.com/ipfs/go-ipfs/pull/1550","diff_url":"https://github.com/ipfs/go-ipfs/pull/1550.diff","patch_url":"https://github.com/ipfs/go-ipfs/pull/1550.patch","issue_url":"https://api.github.com/repos/ipfs/go-ipfs/issues/1550","number":1550,"state":"open","locked":false,"title":"Implement mfs API","user":{"login":"whyrusleeping","id":1243164,"avatar_url":"https://avatars.githubusercontent.com/u/1243164?v=3","gravatar_id":"","url":"https://api.github.com/users/whyrusleeping","html_url":"https://github.com/whyrusleeping","followers_url":"https://api.github.com/users/whyrusleeping/followers","following_url":"https://api.github.com/users/whyrusleeping/following{/other_user}","gists_url":"https://api.github.com/users/whyrusleeping/gists{/gist_id}","starred_url":"https://api.github.com/users/whyrusleeping/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/whyrusleeping/subscriptions","organizations_url":"https://api.github.com/users/whyrusleeping/orgs","repos_url":"https://api.github.com/users/whyrusleeping/repos","events_url":"https://api.github.com/users/whyrusleeping/events{/privacy}","received_events_url":"https://api.github.com/users/whyrusleeping/received_events","type":"User","site_admin":false},"body":"WIP api changes to implement mfs.\r\n\r\n\r\nLicense: MIT\r\nSigned-off-by: Jeromy <jeromyj@gmail.com>","created_at":"2015-08-03T19:46:38Z","updated_at":"2015-09-01T03:32:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2a9f80f8a88f8ca888c4b59219f74bf6bc04712b","assignee":{"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},"milestone":null,"commits_url":"https://api.github.com/repos/ipfs/go-ipfs/pulls/1550/commits","review_comments_url":"https://api.github.com/repos/ipfs/go-ipfs/pulls/1550/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/1550/comments","statuses_url":"https://api.github.com/repos/ipfs/go-ipfs/statuses/4eaf136bd5f9cfa74d1a91169bcc5176132b7ed1","head":{"label":"ipfs:feat/mfs","ref":"feat/mfs","sha":"4eaf136bd5f9cfa74d1a91169bcc5176132b7ed1","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-08-31T10:05:20Z","pushed_at":"2015-09-01T03:22:37Z","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":34450,"stargazers_count":701,"watchers_count":701,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":129,"mirror_url":null,"open_issues_count":333,"forks":129,"open_issues":333,"watchers":701,"default_branch":"master"}},"base":{"label":"ipfs:master","ref":"master","sha":"b55cf12ba5f354be30d0644bafe4e750e3080b83","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-08-31T10:05:20Z","pushed_at":"2015-09-01T03:22:37Z","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":34450,"stargazers_count":701,"watchers_count":701,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":129,"mirror_url":null,"open_issues_count":333,"forks":129,"open_issues":333,"watchers":701,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ipfs/go-ipfs/pulls/1550"},"html":{"href":"https://github.com/ipfs/go-ipfs/pull/1550"},"issue":{"href":"https://api.github.com/repos/ipfs/go-ipfs/issues/1550"},"comments":{"href":"https://api.github.com/repos/ipfs/go-ipfs/issues/1550/comments"},"review_comments":{"href":"https://api.github.com/repos/ipfs/go-ipfs/pulls/1550/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/1550/commits"},"statuses":{"href":"https://api.github.com/repos/ipfs/go-ipfs/statuses/4eaf136bd5f9cfa74d1a91169bcc5176132b7ed1"}}}}