vcs

package
v0.0.0-...-100be9c Latest Latest
Warning

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

Go to latest
Published: May 7, 2018 License: BSD-2-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type VCS

type VCS interface {
	CreateLaw(*proto.LawSet) (hash string, err error)
	CreateBranch(string, *proto.LawSet) (string, error)
	CreateVersion(*proto.LawSet, string) (string, error)
	DeleteBranch(upstream, ident, branch string) error
	DeleteLaw(upstream, ident string) error
	DiffVersions(upstream, ident, ours, theirs string) (string, error)
	GetBranchHead(*proto.LawSet) (*easyrepo.Commit, error)
	GetVersion(upstream, ident, hash string) (*easyrepo.Commit, error)
	//AcceptChanges(upstream, ident, branch, target string) (string, error)
	RepoPath(upstream, ident string) string
	GetPath() string
}

func NewVcs

func NewVcs(path string, logger log.Logger) (VCS, error)

TODO backend

Jump to

Keyboard shortcuts

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