GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - sourcegraph/go-vcs: manipulate and inspect VCS repositories in Go

BranchesTags
Open more actions menu

Latest commit

 

History

437 Commits
437 Commits

Folders and files

NameName
Last commit message
Last commit date
cmd/go-vcs
cmd/go-vcs
 
 
vcs
vcs
 
 
.dockerignore
.dockerignore
 
 
.travis.yml
.travis.yml
 
 
Dockerfile
Dockerfile
 
 
LICENSE
LICENSE
 
 
Makefile
Makefile
 
 
README.md
README.md
 
 

Repository files navigation

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.

  • View on Sourcegraph

Build Status GoDoc

Resolving dependencies

For hg blame, you need to install hglib: pip install python-hglib.

Installing

go get -u sourcegraph.com/sourcegraph/go-vcs/vcs

Implementation differences

The goal is to have all supported backends at feature parity, but until then, consult this table for implementation differences.

Feature git gitcmd hg hgcmd
vcs.CommitsOptions.Path ⬜ ✅ ⬜ ⬜
vcs.BranchesOptions.MergedInto ⬜ ✅ ⬜ ⬜
vcs.BranchesOptions.IncludeCommit ⬜ ✅ ⬜ ⬜
vcs.BranchesOptions.BehindAheadBranch ⬜ ✅ ⬜ ⬜
vcs.Repository.Committers ⬜ ✅ ⬜ ⬜
vcs.FileLister ⬜ ✅ ⬜ ⬜
vcs.UpdateResult ⬜ ✅ ⬜ ⬜

Contributions that fill in the gaps are welcome!

Development

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 vcs.proto file.

  1. 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 protoc binary is in your $PATH.

  2. Install gogo/protobuf.

    go get -u github.com/gogo/protobuf/...
    
  3. Install gopathexec:

    go get -u sourcegraph.com/sourcegraph/gopathexec
    

Regenerating Go code after changing vcs.proto

go generate sourcegraph.com/sourcegraph/go-vcs/vcs/...

Running tests

Run go test ./vcs/....

Contributors

  • Quinn Slack [email protected]

See all contributors here.

About

manipulate and inspect VCS repositories in Go

sourcegraph.com/sourcegraph/go-vcs

Resources

Readme
License
Activity
Custom properties

Stars

82 stars

Watchers

73 watching

Forks

18 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.