git

package
v0.0.69 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2023 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Checkout

func Checkout(branchName string) (string, error)

Checkout executes git checkout commnad

func DeleteBranch

func DeleteBranch(branchName string) (string, error)

DeleteBranch executes git branch command to delete a branch

func DiffStat

func DiffStat(destinationBranchName, sourceBranchName string) (string, error)

DiffStat executes git diff to retrieve diff stat

func Difftool

func Difftool(destinationBranchName, sourceBranchName string) error

Difftool executes git difftool command

func Fetch

func Fetch() (string, error)

Fetch executes git fetch command

func GetBranchCommitComments

func GetBranchCommitComments(sourceBranchName string, destinationBranchName string) (string, error)

GetBranchCommitComments executes git log command to retrieve branch commit comments

func GetCurrentBranchName

func GetCurrentBranchName() (string, error)

GetCurrentBranchName executes git symbolic-ref to retrieve current branch name

func GetOriginURL

func GetOriginURL() (string, error)

GetOriginURL executes git remote command to retrieve origin URL

func GetStatus

func GetStatus() (string, error)

GetStatus executes git status command

func IsBranchExists

func IsBranchExists(branchName string) (bool, error)

IsBranchExists executes git show-branch to check if a branch exists

func Merge

func Merge(branchName string) (string, error)

Merge executes git merge command to merge from a branch

func Pull

func Pull() (string, error)

Pull executes git pull command

Types

This section is empty.

Jump to

Keyboard shortcuts

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