git

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsFileModified

func IsFileModified(dir, filePath string) bool

IsFileModified checks if a file has been modified in the working tree Returns true if the file has any changes (staged or unstaged)

Types

type GitInfo

type GitInfo struct {
	RepositoryName string
	BranchName     string
	IsRepository   bool
}

GitInfo holds Git repository information

func GetGitInfo

func GetGitInfo(dir string) *GitInfo

GetGitInfo returns Git repository information for the given directory

Jump to

Keyboard shortcuts

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