Documentation
¶
Overview ¶
Package git is the vcs/1 plugin for the project's repository: status, log graph, branches, diff, blame, stashes and worktrees; commit, checkout, pull, push and the export of a ref.
Index ¶
- func Blame(out string) []blame
- func Dir() string
- func Git(ctx context.Context, args ...string) (string, error)
- func Log(out string) []commit
- func ParseRemote(u string) (host, path string, err error)
- func Register(p *sdk.Plugin, export Export)
- func Remote(ctx context.Context, name string) (host, path string, err error)
- func Status(out string) []change
- type Export
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Dir ¶
func Dir() string
Dir is the repository commands run in: the project rig opened the plugin for.
func Log ¶
func Log(out string) []commit
Log parses `git log --graph --format=logFormat`: graph lines with no commit keep only their graph.
func ParseRemote ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.