git

package
v1.20.0 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PushDefaultMsg = "misc"
)

Variables

This section is empty.

Functions

func ChangedFilesExist added in v1.17.0

func ChangedFilesExist() (uncommitedFiles string, exist bool)

ChangedFilesExist s.e.

func DeleteBranchesLocal added in v1.14.0

func DeleteBranchesLocal(strs *[]string)

DeleteBranchesLocal s.e.

func DeleteBranchesRemote added in v1.14.0

func DeleteBranchesRemote(brs []string)

DeleteBranchesRemote delete branch list

func Dev added in v1.5.0

func Dev(branch string, comments []string)

Dev branch

func DevShort added in v1.10.0

func DevShort(branch string, comments []string)

DevShort - dev branch in trunk

func Download

func Download(cfg vcs.CfgDownload)

Download sources from git repo

func Fork added in v1.5.0

func Fork() (repo string, err error)

Fork repo

func GetCurrentBranchName added in v1.20.0

func GetCurrentBranchName() string

func GetGoneBranchesLocal added in v1.14.0

func GetGoneBranchesLocal() *[]string

GetGoneBranchesLocal returns gone local branches

func GetMainBranch added in v1.20.0

func GetMainBranch() string

func GetMergedBranchList added in v1.11.0

func GetMergedBranchList() (brlist []string, err error)

GetMergedBranchList returns merged user's branch list

func GetNoteAndURL added in v1.17.0

func GetNoteAndURL(notes []string) (note string, url string)

func GetNotes added in v1.17.0

func GetNotes() (notes []string, result bool)

func GetNotesObj added in v1.17.0

func GetNotesObj() (notes []string, result bool)

GetNotesObj s.e.

func GetParentRepoName added in v1.11.0

func GetParentRepoName() (name string)

GetParentRepoName - parent repo of forked

func GetRemoteUpstreamURL added in v1.5.0

func GetRemoteUpstreamURL() string

func GetRepoAndOrgName added in v1.6.0

func GetRepoAndOrgName() (repo string, org string)

GetRepoAndOrgName - from .git/config

func Gui

func Gui()

Gui shows gui

func IsBranchInMain added in v1.14.0

func IsBranchInMain() bool

IsBranchInMain Is my branch in main org?

func IsMainOrg added in v1.6.0

func IsMainOrg() bool

func MakePR added in v1.17.0

func MakePR(notes []string) (err error)

MakePR s.e.

func MakePRMerge added in v1.17.0

func MakePRMerge(prurl string) (err error)

MakePRMerge merges Pull Request by URL

func MakeUpstream added in v1.5.0

func MakeUpstream(repo string)

MakeUpstream s.e.

func PopStashedFiles added in v1.16.0

func PopStashedFiles()

func Release

func Release()

Release current branch. Remove PreRelease, tag, bump version, push

func Status

func Status(cfg vcs.CfgStatus)

Status shows git repo status

func Upload

func Upload(cfg vcs.CfgUpload)

Upload upload sources to git repo

Types

This section is empty.

Jump to

Keyboard shortcuts

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