git

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2023 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddAll

func AddAll() (string, error)

git add -A

func Commit

func Commit(message string) (string, error)

git commit -am <message>

func Diff

func Diff() (string, error)

func ExtractOriginInfo

func ExtractOriginInfo(gitURL string) (string, string, error)

func GetBranch

func GetBranch() (string, error)

func GetBranchDiff

func GetBranchDiff(base, head string) (string, error)

func GetChangedFiles

func GetChangedFiles() ([]string, error)

func GetChangedFilesBranches

func GetChangedFilesBranches(base, head string) ([]string, error)

func GetFileDiff

func GetFileDiff(file string) (string, error)

func GetFileDiffBranches

func GetFileDiffBranches(base, head, file string) (string, error)

func GetRemote

func GetRemote(remote string) (string, error)

func GetRepo

func GetRepo(repoPath, ignoreFilePath string, ignoreGitIgnore bool) (*prompt.GitRepo, error)

GetRepo returns a GitRepo object for the given repoPath

func IsClean

func IsClean() (bool, error)

func IsDirty

func IsDirty() (bool, error)

func IsGitRepo

func IsGitRepo(path string) bool

checks to see if a .git directory exists in the path

func Log

func Log() (string, error)

func LogBetween

func LogBetween(base, head string) (string, error)

func OriginToGitHub

func OriginToGitHub(origin string) (string, error)

func Push

func Push() (string, error)

git push

func Status

func Status() (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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