gitclient

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetChangedFilesBetweenRefs added in v0.5.0

func GetChangedFilesBetweenRefs(
	dirPath *string,
	from string,
	to string,
) ([]string, error)

func GetFilesChangedNCommitsBefore added in v0.5.0

func GetFilesChangedNCommitsBefore(dirPath *string, n int) ([]string, error)

func GetFilesToBePushed added in v0.5.0

func GetFilesToBePushed(dirPath *string) ([]string, error)

func GetNotStagedFiles

func GetNotStagedFiles(dirPath *string) ([]string, error)

func GetRepoPath

func GetRepoPath(start *string) (string, error)

GetRepoPath returns the absolute path of the folder containing the git repository for the current working directory.

func GetStagedFiles

func GetStagedFiles(dirPath *string) ([]string, error)

Types

type GitRefDelimiter

type GitRefDelimiter struct {
	From string
	To   string
}

Jump to

Keyboard shortcuts

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