gitexec

package
v0.7.189 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package gitexec provides the low-level process boundary for local git commands.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Runner

type Runner struct {
	Dir string
	Env []string
}

Runner executes git commands in Dir.

func (Runner) CombinedOutput

func (r Runner) CombinedOutput(ctx context.Context, args ...string) ([]byte, error)

CombinedOutput runs git with args and returns its combined standard output and standard error.

func (Runner) Output

func (r Runner) Output(ctx context.Context, args ...string) ([]byte, error)

Output runs git with args and returns its standard output.

func (Runner) Run

func (r Runner) Run(ctx context.Context, args ...string) error

Run runs git with args.

Jump to

Keyboard shortcuts

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