git

package
v1.1.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetChangedFiles

func GetChangedFiles(repoPath, beforeCommit, afterCommit string) (map[string]struct{}, error)

GetChangedFiles returns a set of file paths that have changed between two commits. File paths are absolute paths.

func GetChangedFilesBetweenCommits

func GetChangedFilesBetweenCommits(repoPath string, beforeCommit, afterCommit string) (map[string]struct{}, error)

GetChangedFilesBetweenCommits is a convenience function that returns changed files between two commits. It handles HEAD^ style references.

func GetCommitForRef

func GetCommitForRef(repoPath, ref string) (*object.Commit, error)

GetCommitForRef returns the commit object for a given reference

Types

This section is empty.

Jump to

Keyboard shortcuts

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