gitutil

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 8, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package gitutil provides shared Git repository helpers used across multiple internal packages.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsGitRepo

func IsGitRepo(root string) bool

IsGitRepo reports whether root is the root of a git repository.

It accepts both forms of the .git entry:

  • a directory: standard single-worktree repository
  • a regular file: linked worktree created by "git worktree add" (the file contains a "gitdir: ..." pointer to the main repo)

Anything other than a stat error at <root>/.git is treated as a valid git repo — downstream git commands will surface a more precise error if the entry is malformed.

Types

This section is empty.

Jump to

Keyboard shortcuts

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