git

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: May 23, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Info

type Info struct {
	IsRepo        bool   // Whether the current directory is in a git repository
	CurrentCommit string // The current commit hash
	CurrentBranch string // The current branch name
}

Info holds git repository information

func GetInfo

func GetInfo() (*Info, error)

GetInfo returns information about the current git repository

Jump to

Keyboard shortcuts

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