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

git

package
v1.112.0 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2026 License: Apache-2.0 Imports: 12 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)

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