git

package
v0.13.1 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2025 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DetectRoot

func DetectRoot() (string, error)

Try to get the root directory of this repo Deprecated: use IsGitRoot() instead

func IsGitRoot added in v0.2.0

func IsGitRoot(dir string) (bool, error)

A predicate to determine if `dir` is the root of a git repository. Combos well with `shell.ParseDirectory`, for example.

Types

This section is empty.

Jump to

Keyboard shortcuts

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