git

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetChangedFiles

func GetChangedFiles(repoRoot, base string) ([]string, error)

GetChangedFiles returns a list of files that have changed between the base ref and HEAD, including any uncommitted changes in the working directory.

func GetDefaultBranch

func GetDefaultBranch() (string, error)

GetDefaultBranch attempts to determine the default branch of the repository. It checks origin/HEAD first, then falls back to common defaults (main, master).

func GetRepoRoot

func GetRepoRoot() (string, error)

GetRepoRoot returns the root directory of the git repository.

func MapFilesToModules

func MapFilesToModules(changedFiles []string, moduleDirs []string) []string

MapFilesToModules takes a list of changed files and returns a list of module directories that contain those files. It filters to only include paths that are within the given module directories (e.g., components/, bases/, projects/).

Types

This section is empty.

Jump to

Keyboard shortcuts

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