git

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package git provides git repository status information for the working directory.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetStatus

func GetStatus(cwd string) *model.GitStatus

GetStatus returns the git status for the given directory, or nil if the directory is not a git repo or any command fails. Callers must guard against nil before dereferencing the result.

Results are cached per directory for up to 1 second so rapid successive calls (e.g. multiple render ticks) avoid redundant subprocess spawns.

Types

This section is empty.

Jump to

Keyboard shortcuts

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