git

package
v0.0.0-...-493f21b Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package git provides functions for interacting with a local git repository.

It shells out to the git command-line tool to perform operations such as finding the repository root directory, reading file contents at a given ref (branch, tag, or commit), and listing files that have changed between the working tree and a given ref.

All functions in this package require that the git binary is available on the system PATH.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DiffNames

func DiffNames(dir, treeish string) ([]string, error)

func Read

func Read(dir, treeish, file string) ([]byte, error)

func Root

func Root(dir string) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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