gitrepo

package
v0.42.0 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindRepoRoot

func FindRepoRoot(startPath string) (string, error)

FindRepoRoot walks up the directory tree from startPath looking for a .git entry (either a file or a directory) and returns the absolute path of the first directory that contains .git. It returns an error if the filesystem root is reached without finding .git.

Types

This section is empty.

Jump to

Keyboard shortcuts

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