Help us shape the future of Go! Take the 2026 Go Developer Survey

git

package
v1.151.0 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ToolNameGitStatus   = "git_status"
	ToolNameGitLog      = "git_log"
	ToolNameGitBranches = "git_branches"
	ToolNameGitShow     = "git_show"
	ToolNameGitBlame    = "git_blame"
)

Variables

This section is empty.

Functions

func CreateToolSet

func CreateToolSet(runConfig *config.RuntimeConfig) (tools.ToolSet, error)

func Creator added in v1.132.0

func Creator(_ context.Context, _ latest.Toolset, _ string, runConfig *config.RuntimeConfig, _ string) (tools.ToolSet, error)

Creator builds this toolset from its YAML declaration. It matches teamloader.ToolsetCreator so it can be registered directly:

teamloader.NewToolsetRegistry(map[string]teamloader.ToolsetCreator{"git": git.Creator})

Types

type BlameArgs

type BlameArgs struct {
	Path string `json:"path" jsonschema:"File path to blame, relative to the repository root"`
	Rev  string `json:"rev,omitempty" jsonschema:"Commit or revision to blame at (default HEAD)"`
}

type BranchesArgs

type BranchesArgs struct{}

type LogArgs

type LogArgs struct {
	Limit int    `json:"limit,omitempty" jsonschema:"Maximum number of commits to return (default 20, capped at 200)"`
	Path  string `json:"path,omitempty" jsonschema:"Only show commits that touch this path"`
}

type ShowArgs

type ShowArgs struct {
	Ref string `json:"ref,omitempty" jsonschema:"Commit hash or revision to show (default HEAD)"`
}

type StatusArgs

type StatusArgs struct{}

type ToolSet

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

func New

func New(dir string) *ToolSet

func (*ToolSet) Instructions

func (t *ToolSet) Instructions() string

func (*ToolSet) Tools

func (t *ToolSet) Tools(context.Context) ([]tools.Tool, error)

Jump to

Keyboard shortcuts

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