git

package
v1.164.0 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2026 License: Apache-2.0 Imports: 13 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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