Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-unixfs
Commits
6f033dd7
Commit
6f033dd7
authored
Oct 06, 2014
by
Peter Borzov
Committed by
Juan Batiz-Benet
Oct 09, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Initialize Updates.check config setting
parent
ecd6f3b0
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
1 deletion
+6
-1
cmd/ipfs/init.go
cmd/ipfs/init.go
+4
-0
cmd/ipfs/ipfs.go
cmd/ipfs/ipfs.go
+1
-0
config/config.go
config/config.go
+1
-1
cpu.prof
cpu.prof
+0
-0
No files found.
cmd/ipfs/init.go
View file @
6f033dd7
...
@@ -135,6 +135,10 @@ func initCmd(c *commander.Command, inp []string) error {
...
@@ -135,6 +135,10 @@ func initCmd(c *commander.Command, inp []string) error {
},
},
}
}
cfg
.
Updates
=
config
.
Updates
{
Check
:
"error"
,
}
err
=
config
.
WriteConfigFile
(
filename
,
cfg
)
err
=
config
.
WriteConfigFile
(
filename
,
cfg
)
if
err
!=
nil
{
if
err
!=
nil
{
return
err
return
err
...
...
cmd/ipfs/ipfs.go
View file @
6f033dd7
...
@@ -24,6 +24,7 @@ var CmdIpfs = &commander.Command{
...
@@ -24,6 +24,7 @@ var CmdIpfs = &commander.Command{
Basic commands:
Basic commands:
init Initialize ipfs local configuration.
add <path> Add an object to ipfs.
add <path> Add an object to ipfs.
cat <ref> Show ipfs object data.
cat <ref> Show ipfs object data.
ls <ref> List links from an object.
ls <ref> List links from an object.
...
...
config/config.go
View file @
6f033dd7
...
@@ -47,7 +47,7 @@ func (bp *BootstrapPeer) String() string {
...
@@ -47,7 +47,7 @@ func (bp *BootstrapPeer) String() string {
// Updates regulates checking and downloading for application's most recent version
// Updates regulates checking and downloading for application's most recent version
type
Updates
struct
{
type
Updates
struct
{
Check
string
// "ignore" for do not check, "warn" and "error" for reacting when obsolete
Check
string
`json:"check"`
// "ignore" for do not check, "warn" and "error" for reacting when obsolete
}
}
// Config is used to load IPFS config files.
// Config is used to load IPFS config files.
...
...
cpu.prof
deleted
100644 → 0
View file @
ecd6f3b0
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment