gitcmd

package
v1.0.73 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package gitcmd provides Git process helpers for tests that use temporary repositories.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Command

func Command(dir string, args ...string) *exec.Cmd

Command creates a Git command whose automatic maintenance stays in the command lifecycle, so temporary repository cleanup cannot race a detached maintenance process.

func SetSynchronousMaintenanceEnv

func SetSynchronousMaintenanceEnv(t *testing.T)

SetSynchronousMaintenanceEnv applies the same lifecycle contract to every Git process started by the current test, including processes created through production command runners. Tests using it must not run in parallel.

Types

This section is empty.

Jump to

Keyboard shortcuts

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