Help us shape the future of Go! Take the 2026 Go Developer Survey

git

package
v0.17.1 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2026 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package git provides functions for setting up a temporary git work tree

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRepoRoot added in v0.13.0

func GetRepoRoot() (string, error)

GetRepoRoot finds the top-level directory of the current git repository.

func SetupWorkTree

func SetupWorkTree(repoRoot, gitRef string) (string, func(), error)

SetupWorkTree creates a temporary git work tree we can use for checking out our references

Types

This section is empty.

Jump to

Keyboard shortcuts

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