Documentation
¶
Overview ¶
Package git interacts with Git repositories.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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.
Click to show internal directories.
Click to hide internal directories.