git

package
v0.26.2 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindGitRepo

func FindGitRepo(dirs ...string) (string, error)

FindGitRepo checks if the given directories belong to the same Git repository. It returns the root of the Git repository if all directories share the same repository. If the directories belong to different repositories it retruns an error.

func GetChangedFiles

func GetChangedFiles(dir string) ([]string, error)

GetChangedFiles will return a list of files that have been changed in the repository. This should only be called when required, i.e. a .git directory has already been detected.

Types

This section is empty.

Jump to

Keyboard shortcuts

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