git

package
v0.0.0-...-412af48 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type VcsHandle

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

VcsHandle is the handle

func (VcsHandle) Add

func (v VcsHandle) Add(repobasedir string, files []string) error

Add makes a file visible to the VCS (like "git add").

func (*VcsHandle) CommitTitle

func (v *VcsHandle) CommitTitle(title string)

CommitTitle indicates what the next commit title will be. This is used if a group of commits are merged into one.

func (VcsHandle) DebugCommits

func (v VcsHandle) DebugCommits() commitlater.List

DebugCommits dumps the list of future commits.

func (VcsHandle) Discover

func (v VcsHandle) Discover() (bool, string)

Discover returns true if we are a repo of this type; along with the Abs path to the repo root (or "" if we don't know).

func (VcsHandle) FlushCommits

func (v VcsHandle) FlushCommits() error

FlushCommits informs the VCS to do queued up commits.

func (VcsHandle) IgnoreAnywhere

func (v VcsHandle) IgnoreAnywhere(repobasedir string, files []string) error

IgnoreAnywhere tells the VCS to ignore these files anywhere rin the repo.

func (VcsHandle) IgnoreFiles

func (v VcsHandle) IgnoreFiles(repobasedir string, files []string) error

IgnoreFiles tells the VCS to ignore these files, specified relative to RepoBaseDir.

func (VcsHandle) Name

func (v VcsHandle) Name() string

Name returns my name.

func (*VcsHandle) NeedsCommit

func (v *VcsHandle) NeedsCommit(message string, repobasedir string, names []string)

NeedsCommit queues up commits for later execution.

func (VcsHandle) SetFileTypeUnix

func (v VcsHandle) SetFileTypeUnix(repobasedir string, files ...string) error

SetFileTypeUnix informs the VCS that files should maintain unix-style line endings.

func (VcsHandle) TestingInitRepo

func (v VcsHandle) TestingInitRepo() error

TestingInitRepo initializes a repo.

Jump to

Keyboard shortcuts

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