govcs is a simple abstraction layer around version control tools. It currently
supports Git and Mercurial. With it you can get information about the
repository including remotes, branches, commits, etc.
[
![GoDoc](
https://godoc.org/bitbucket.org/rw_grim/govcs?status.svg)](https://godoc.org/bitbucket.org/rw_grim/govcs)
go get bitbucket.org/rw_grim/govcs
This simple example will output the default remote for the repository in the
"bitbucket.org/rw_grim/govcs"
vcs, err := govcs.Dectect("my-src-dir")
fmt.Printf("remote: %s\n", vcs.Remote(""))