Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: ipfs/kubo
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 594c1bfa2af0
Choose a base ref
...
head repository: ipfs/kubo
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 3a1c8d7a535e
Choose a head ref
  • 2 commits
  • 1 file changed
  • 2 contributors

Commits on Jun 19, 2015

  1. "object" added to the descriptions of object patch and object data

    License: MIT
    Signed-off-by: Dylan Powers <dylan.kyle.powers@gmail.com>
    dylanPowers committed Jun 19, 2015
    Copy the full SHA
    3f22954 View commit details

Commits on Jun 20, 2015

  1. Merge pull request #1400 from dylanPowers/object-help

    "object" added to the descriptions of object patch and object data
    jbenet committed Jun 20, 2015
    Copy the full SHA
    3a1c8d7 View commit details
Showing with 5 additions and 5 deletions.
  1. +5 −5 core/commands/object.go
10 changes: 5 additions & 5 deletions core/commands/object.go
Original file line number Diff line number Diff line change
@@ -75,12 +75,12 @@ var objectDataCmd = &cmds.Command{
Helptext: cmds.HelpText{
Tagline: "Outputs the raw bytes in an IPFS object",
ShortDescription: `
ipfs data is a plumbing command for retreiving the raw bytes stored in
ipfs object data is a plumbing command for retreiving the raw bytes stored in
a DAG node. It outputs to stdout, and <key> is a base58 encoded
multihash.
`,
LongDescription: `
ipfs data is a plumbing command for retreiving the raw bytes stored in
ipfs object data is a plumbing command for retreiving the raw bytes stored in
a DAG node. It outputs to stdout, and <key> is a base58 encoded
multihash.
@@ -431,20 +431,20 @@ var objectPatchCmd = &cmds.Command{
Helptext: cmds.HelpText{
Tagline: "Create a new merkledag object based on an existing one",
ShortDescription: `
'ipfs patch <root> [add-link|rm-link] <args>' is a plumbing command used to
'ipfs object patch <root> [add-link|rm-link] <args>' is a plumbing command used to
build custom DAG objects. It adds and removes links from objects, creating a new
object as a result. This is the merkle-dag version of modifying an object.
Examples:
EMPTY_DIR=$(ipfs object new unixfs-dir)
BAR=$(echo "bar" | ipfs add -q)
ipfs patch $EMPTY_DIR add-link foo $BAR
ipfs object patch $EMPTY_DIR add-link foo $BAR
This takes an empty directory, and adds a link named foo under it, pointing to
a file containing 'bar', and returns the hash of the new object.
ipfs patch $FOO_BAR rm-link foo
ipfs object patch $FOO_BAR rm-link foo
This removes the link named foo from the hash in $FOO_BAR and returns the
resulting object hash.