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/keep.imfreedom.org/grim/govcs?status.svg)](https://godoc.org/keep.imfreedom.org/grim/govcs)
go get keep.imfreedom.org/grim/govcs
This simple example will output the default remote for the repository in the
"keep.imfreedom.org/grim/govcs"
vcs, err := govcs.Dectect("my-src-dir")
fmt.Printf("remote: %s\n", vcs.Remote(""))