Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

docs: added some small verbage to the README for "Resolve through IPLD grap… #1253

Merged
merged 1 commit into from
Oct 27, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions examples/traverse-ipld-graphs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ This tutorial goes through several operations over IPLD graphs using the [DAG AP
## [traverse through a slice of the ethereum blockchain](./eth.js)

## [traverse through a git repo](./git.js)
The example objects contained in "git-objects" have already been decompressed with zlib. An example of how to do this:

$ cat .git/objects/7d/df25817f57c2090a9568cdb17106a76dad7d04 | zlib-flate -uncompress > 7ddf25817f57c2090a9568cdb17106a76dad7d04
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should use the jsipfs block put with respective arguments. //cc @vmx

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@diasdavid Did you mean jsipfs dag put?

Copy link
Member

@daviddias daviddias May 28, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did really meant block put as what @datafatmunger is doing is putting an already serialized node from git into ipfs, therefore block put rather than dag put which would try to serialize it again.

Essentially, what I'm suggesting is to show how to do this step -- https://github.com/datafatmunger/js-ipfs/blob/3ea1a195ec04d0be2da8abe6d543a553764e5d5c/examples/traverse-ipld-graphs/git.js#L41 -- through the CLI.


## Video of the demos

Expand Down