Documentation
¶
Overview ¶
Package git implements the git VCS backend.
Index ¶
- func Register()
- type Backend
- func (*Backend) Detect(path string) (bool, error)
- func (*Backend) Name() string
- func (*Backend) Priority() int
- func (*Backend) Run(ctx context.Context, path string, args []string, interactive bool) (backend.RunResult, error)
- func (*Backend) Status(ctx context.Context, path string) (backend.RepoStatus, error)
- func (*Backend) SubcommandArgs(op string) []string
- func (*Backend) Subcommands(ctx context.Context) ([]string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Backend ¶
type Backend struct{}
Backend implements backend.Backend for git repositories.
func (*Backend) Run ¶
func (*Backend) Run( ctx context.Context, path string, args []string, interactive bool, ) (backend.RunResult, error)
Run executes arbitrary git args in path.
func (*Backend) Status ¶
Status queries git for the current branch/remote relationship and working tree cleanliness using a single `git status --porcelain=v2 --branch` call.
func (*Backend) SubcommandArgs ¶ added in v0.3.0
Click to show internal directories.
Click to hide internal directories.