git

package
v0.0.0-...-9994f1b Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2025 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Overview

Package git encapsulates git command interactions for dirmd.

Index

Constants

This section is empty.

Variables

View Source
var Binary string

Binary is the platform aware git binary name.

Functions

func FindRepoRoot

func FindRepoRoot(ctx context.Context, dir string) (string, error)

FindRepoRoot returns the root dir of the repo which contains the provided dir

func IsInGitRepo

func IsInGitRepo(dir string) bool

IsInGitRepo returns true if the provided dir is in a git repository.

Types

This section is empty.

Jump to

Keyboard shortcuts

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