git-lfs/config.go

20 lines
371 B
Go
Raw Normal View History

2013-11-05 17:07:03 +00:00
package gitmedia
type Configuration struct {
Endpoint string
}
var config *Configuration
// Config gets the git media configuration for the current repository. It
// reads .gitmedia, which is a toml file.
//
// https://github.com/mojombo/toml
func Config() *Configuration {
if config == nil {
config = &Configuration{"http://localhost:8080"}
}
return config
}