svn

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: 4 Imported by: 0

Documentation

Overview

Package git interacts with Git repositories.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Detect

func Detect(wd string) vcs.VCS

Detect will return a vcs.VCS instance if the given working directory is a Git repository.

Types

type Subversion

type Subversion struct {
	// contains filtered or unexported fields
}

SVN is an instance of vcs.VCS that will operate on a Subversion repository.

func (*Subversion) Branch

func (s *Subversion) Branch() string

Branch returns the name of the checked out branch.

func (*Subversion) Commit

func (s *Subversion) Commit() string

Commit will return the commit id of the repository.

func (*Subversion) Config

func (s *Subversion) Config(key string) []string

Config will look up the given key and return a string slice of the values.

func (*Subversion) Name

func (s *Subversion) Name() string

Name returns svn. This is used so that callers know what vcs they have.

func (*Subversion) Remote

func (s *Subversion) Remote(name string) string

Remote will return the url for repository. The given remote name is ignored as subversion does not support multiple remotes.

func (*Subversion) Root

func (s *Subversion) Root() string

Root will return the root of the repository.

func (*Subversion) ShortCommit

func (s *Subversion) ShortCommit() string

ShortCommit returns the short commit id of the repository.

Jump to

Keyboard shortcuts

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