git

package
v0.0.0-prerelease Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFunctionRegex

func GetFunctionRegex(funcName, filePath string) *regexp.Regexp

GetFunctionRegex returns a regex pattern to match functions based on file extension

Types

type GitFunctionChange

type GitFunctionChange struct {
	Commit  *download.Commit
	Content string
}

func GetFunctionChanges

func GetFunctionChanges(repo *git.Repository, funcName, filePath string) ([]GitFunctionChange, error)

GetFunctionChanges returns a history of changes to a specific function in a file

Jump to

Keyboard shortcuts

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