gitutil

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsTracked

func IsTracked(repoRoot, path string) (bool, error)

IsTracked reports whether the file at path is tracked by git in the given repo root. Returns (false, nil) if the file does not exist. Returns (false, error) on git errors (fail-closed).

func Output

func Output(dir string, args ...string) (string, error)

Output runs `git <args...>` in the given directory and returns trimmed stdout.

func RepoRoot

func RepoRoot(dir string) (string, error)

RepoRoot returns the top-level directory of the git repository containing dir.

Types

This section is empty.

Jump to

Keyboard shortcuts

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