go-vcs - manipulate and inspect VCS repositories
go-vcs is a library for manipulating and inspecting VCS repositories in Go. It currently supports Git and Mercurial (hg).
Note: the public API is experimental and subject to change until further notice.
For hg blame, you need to install hglib:
pip install python-hglib.
go get -u sourcegraph.com/sourcegraph/go-vcs/vcs
The goal is to have all supported backends at feature parity, but until then, consult this table for implementation differences.
Contributions that fill in the gaps are welcome!
First-time installation of protobuf and other codegen tools
You need to install and run the protobuf compiler before you can regenerate Go code after you change the
Install protoc, the protobuf compiler. Find more details in the protobuf README.
On OS X, you can install it with Homebrew by running:
brew install --devel protobuf
Then make sure the
protocbinary is in your
go get -u github.com/gogo/protobuf/...
go get -u sourcegraph.com/sourcegraph/gopathexec
Regenerating Go code after changing
go generate sourcegraph.com/sourcegraph/go-vcs/vcs/...
go test ./vcs/....
- Quinn Slack firstname.lastname@example.org
See all contributors here.