git

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 26, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Package git provides git repository context source.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Source

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

Source analyzes a git repository for context.

func NewSource

func NewSource(cfg ctx.RepositoryConfig) (*Source, error)

NewSource creates a new git source from configuration.

func (*Source) Fetch

func (s *Source) Fetch(c context.Context) (*ctx.ContextData, error)

Fetch retrieves context from the git repository.

func (*Source) Name

func (s *Source) Name() string

Name returns the source identifier.

func (*Source) String

func (s *Source) String() string

String returns a human-readable description.

func (*Source) Type

func (s *Source) Type() ctx.SourceType

Type returns the source type.

Jump to

Keyboard shortcuts

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