{"id":13367377,"url":"https://github.com/sourcegraph/Go-vcs","last_synced_at":"2025-03-12T18:32:34.442Z","repository":{"id":8751791,"uuid":"10431493","full_name":"sourcegraph/go-vcs","owner":"sourcegraph","description":"manipulate and inspect VCS repositories in Go","archived":false,"fork":false,"pushed_at":"2023-07-17T07:36:21.000Z","size":786,"stargazers_count":80,"open_issues_count":22,"forks_count":20,"subscribers_count":84,"default_branch":"master","last_synced_at":"2024-08-03T15:06:12.317Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://sourcegraph.com/sourcegraph/go-vcs","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sourcegraph.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2013-06-02T02:36:18.000Z","updated_at":"2024-07-30T04:08:40.000Z","dependencies_parsed_at":"2024-01-08T16:08:38.212Z","dependency_job_id":"dc5813b4-b5ef-44a9-afaf-6a69f3bb5a13","html_url":"https://github.com/sourcegraph/go-vcs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sourcegraph%2Fgo-vcs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sourcegraph%2Fgo-vcs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sourcegraph%2Fgo-vcs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sourcegraph%2Fgo-vcs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sourcegraph","download_url":"https://codeload.github.com/sourcegraph/go-vcs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221309977,"owners_count":16795837,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-30T00:01:46.161Z","updated_at":"2024-10-24T11:31:16.155Z","avatar_url":"https://github.com/sourcegraph.png","language":"Go","readme":"go-vcs - manipulate and inspect VCS repositories\n================================================\n\ngo-vcs is a library for manipulating and inspecting VCS repositories in Go. It currently supports\nGit and Mercurial (hg).\n\nNote: the public API is experimental and subject to change until further notice.\n\n* [View on Sourcegraph](https://sourcegraph.com/github.com/sourcegraph/go-vcs/-/def/GoPackage/github.com/sourcegraph/go-vcs/vcs/-/Repository)\n\n[![Build Status](https://travis-ci.org/sourcegraph/go-vcs.png?branch=master)](https://travis-ci.org/sourcegraph/go-vcs)\n[![GoDoc](https://godoc.org/sourcegraph.com/sourcegraph/go-vcs/vcs?status.svg)](https://godoc.org/sourcegraph.com/sourcegraph/go-vcs/vcs#Repository)\n\nResolving dependencies\n======================\n\nFor hg blame, you need to install hglib: `pip install python-hglib`.\n\nInstalling\n==========\n\n```\ngo get -u sourcegraph.com/sourcegraph/go-vcs/vcs\n```\n\nImplementation differences\n==========================\n\nThe goal is to have all supported backends at feature parity, but until then, consult this table for implementation differences.\n\n| Feature                               | git                  | gitcmd             | hg                   | hgcmd                |\n|---------------------------------------|----------------------|--------------------|----------------------|----------------------|\n| vcs.CommitsOptions.Path               | :white_large_square: | :white_check_mark: | :white_large_square: | :white_large_square: |\n| vcs.BranchesOptions.MergedInto        | :white_large_square: | :white_check_mark: | :white_large_square: | :white_large_square: |\n| vcs.BranchesOptions.IncludeCommit     | :white_large_square: | :white_check_mark: | :white_large_square: | :white_large_square: |\n| vcs.BranchesOptions.BehindAheadBranch | :white_large_square: | :white_check_mark: | :white_large_square: | :white_large_square: |\n| vcs.Repository.Committers             | :white_large_square: | :white_check_mark: | :white_large_square: | :white_large_square: |\n| vcs.FileLister                        | :white_large_square: | :white_check_mark: | :white_large_square: | :white_large_square: |\n| vcs.UpdateResult                      | :white_large_square: | :white_check_mark: | :white_large_square: | :white_large_square: |\n\nContributions that fill in the gaps are welcome!\n\nDevelopment\n===========\n\n### First-time installation of protobuf and other codegen tools\n\nYou need to install and run the protobuf compiler before you can regenerate Go code after you change the `vcs.proto` file.\n\n1.\t**Install protoc**, the protobuf compiler. Find more details in the [protobuf README](https://github.com/google/protobuf).\n\n\tOn OS X, you can install it with Homebrew by running:\n\n\t```\n\tbrew install --devel protobuf\n\t```\n\n\tThen make sure the `protoc` binary is in your `$PATH`.\n\n2.\t**Install [gogo/protobuf](https://github.com/gogo/protobuf)**.\n\n\t```\n\tgo get -u github.com/gogo/protobuf/...\n\t```\n\n3.\t**Install `gopathexec`**:\n\n\t```\n\tgo get -u sourcegraph.com/sourcegraph/gopathexec\n\t```\n\n### Regenerating Go code after changing `vcs.proto`\n\n```\ngo generate sourcegraph.com/sourcegraph/go-vcs/vcs/...\n```\n\n### Running tests\n\nRun `go test ./vcs/...`.\n\nContributors\n============\n\n* Quinn Slack \u003csqs@sourcegraph.com\u003e\n\nSee all contributors [here](https://github.com/sourcegraph/go-vcs/graphs/contributors).\n","funding_links":[],"categories":["版本控制"],"sub_categories":["高级控制台界面","高級控制台界面"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsourcegraph%2FGo-vcs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsourcegraph%2FGo-vcs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsourcegraph%2FGo-vcs/lists"}