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
bd1d8767
Commit
bd1d8767
authored
Jan 14, 2015
by
Brian Tiger Chow
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
doc(fsrepo): explain ConfigAt
parent
30a5aa9b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
repo/fsrepo/fsrepo.go
repo/fsrepo/fsrepo.go
+3
-0
No files found.
repo/fsrepo/fsrepo.go
View file @
bd1d8767
...
@@ -71,6 +71,9 @@ func At(repoPath string) *FSRepo {
...
@@ -71,6 +71,9 @@ func At(repoPath string) *FSRepo {
}
}
}
}
// ConfigAt returns an error if the FSRepo at the given path is not
// initialized. This function allows callers to read the config file even when
// another process is running and holding the lock.
func
ConfigAt
(
repoPath
string
)
(
*
config
.
Config
,
error
)
{
func
ConfigAt
(
repoPath
string
)
(
*
config
.
Config
,
error
)
{
// packageLock must be held to ensure that the Read is atomic.
// packageLock must be held to ensure that the Read is atomic.
...
...
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