git

package
v0.4.8 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const DefaultTimeout = 10 * time.Second

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

func NewService

func NewService(maxProcs int, timeout time.Duration) *Service

func (*Service) Diff added in v0.4.5

func (s *Service) Diff(ctx context.Context, dir, path string, staged bool) (string, error)

func (*Service) Divergence

func (s *Service) Divergence(ctx context.Context, dir, base, branch string) (model.Divergence, error)

func (*Service) Graph

func (s *Service) Graph(ctx context.Context, dir string, refs []string, max int) ([]model.GraphLine, error)

func (*Service) RepoStats

func (s *Service) RepoStats(ctx context.Context, dir string) (model.RepoStats, error)

func (*Service) RunGit

func (s *Service) RunGit(ctx context.Context, dir string, args ...string) (string, error)

func (*Service) Status

func (s *Service) Status(ctx context.Context, dir string) (model.StatusResult, error)

Jump to

Keyboard shortcuts

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