vcs

package
v0.0.0-...-ba9bc52 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2016 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

type Repository interface {
	GetRevision() (string, error)
	GetRemote() (string, error)
	GetVCSName() string
	GetPath() (string, error)
	GetBranch() (string, error)

	AddRemote(remote string) error
	Fetch() error
	Checkout(revision string) error
	CheckoutBranch(branch string) error
}

func CloneAtRevision

func CloneAtRevision(v VCS, remote, revision, path string) (Repository, error)

func CloneRepository

func CloneRepository(v VCS, repo Repository, path string) (Repository, error)

type VCS

type VCS interface {
	New(path string) (Repository, error)
	Open(path string) (Repository, error)
	GetName() string
}

Directories

Path Synopsis
git

Jump to

Keyboard shortcuts

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