Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultProviders = []Provider{
{
BaseURL: "https://github.com",
CommitPrefix: "commit",
PathPrefix: "tree",
},
{
BaseURL: "https://gitlab.com",
CommitPrefix: "-/commit",
PathPrefix: "-/tree",
},
{
BaseURL: "https://bitbucket.org",
CommitPrefix: "commits",
PathPrefix: "src",
},
}
DefaultProviders are a list of supported Providers
Functions ¶
Types ¶
type Provider ¶
Provider represents the Git platforms domain and URL pathing.
func LoadProviders ¶ added in v0.2.0
func LoadProviders() []Provider
LoadProviders returns a slice of Provider from the global Git config.
The Git config structure includes a base URL as an argument, and commit prefix and path prefix keys and values.
[open "https://git.mydomain.dev"] commitprefix = commit pathprefix = tree
Click to show internal directories.
Click to hide internal directories.