vcs

package
v0.7.0-beta.9 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2018 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package vcs implements functions for interacting with version control systems.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoVCSInDir   = errors.New("could not find VCS repository in directory")
	ErrNoNearestVCS = errors.New("could not find nearest VCS repository in directory")
)

Errors that occur when finding VCS repositories.

Functions

func GetRepository

func GetRepository(dirname string) (string, error)

GetRepository returns the location of the repository containing dirname, errutil.ErrRepositoryNotFound if none is found, or errutil.ErrNotImplemented if an unsupported VCS is found.

func NearestVCS

func NearestVCS(dirname string) (vcsType cli.VCS, vcsDir string, err error)

NearestVCS returns the type and directory of the nearest VCS repository containing the directory, or ErrNoNearestVCS if none is found.

Types

This section is empty.

Jump to

Keyboard shortcuts

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