Skip to content

Commit

Permalink
doc(fsrepo): explain ConfigAt
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Tiger Chow committed Jan 14, 2015
1 parent 30a5aa9 commit bd1d876
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions repo/fsrepo/fsrepo.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {

// packageLock must be held to ensure that the Read is atomic.
Expand Down

0 comments on commit bd1d876

Please sign in to comment.