vcs

package
v0.0.0-...-ba0d244 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 27, 2019 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Overview

Package vcs abstracts VCS interactions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type VCS

type VCS interface {
	// Name is a short string naming the vcs.  Ie: git, hg, svn
	Name() string

	// Remote will return the url for the given remote.  If no remote is given
	// the default for the version control system will be used.
	Remote(name string) string

	// Root will return the root of the repository.
	Root() string

	// Commit returns the current commit id of repository.
	Commit() string

	// ShortCommit returns a shortened form of Commit().
	ShortCommit() string

	// Branch returns the currently checked out branch of the repository.
	Branch() string

	// Config will look up a setting in the configuration for the repository
	// and return a slice of values for the given key.
	Config(key string) []string
}

VCS is an interface into the individual version control tools.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL