git

package
v1.5.25 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2023 License: MIT Imports: 39 Imported by: 1

Documentation

Index

Constants

View Source
const (
	CONFIG     = "config"
	USER_NAME  = "user.name"
	USER_EMAIL = "user.email"
)
View Source
const (
	INIT   = "init"
	CLONE  = "clone"
	PULL   = "pull"
	PUSH   = "push"
	LOG    = "log"
	TAG    = "tag"
	ADD    = "add"
	STASH  = "stash"
	COMMIT = "commit"
	BRANCH = "branch"

	REMOTE    = "remote"
	ORIGIN    = "origin"
	MASTER    = "master"
	INDEX     = "index"
	INSTEADOF = "insteadof"
)
View Source
const (
	INFO_REFS    = "info/refs"
	RECEIVE_PACK = "receive-pack"
	UPLOAD_PACK  = "upload-pack"
)
View Source
const (
	GITEA = "gitea"
	OAUTH = "oauth"
	DIFF  = "diff"
	OPT   = "opt"
	FIX   = "fix"

	TAGS    = "tags"
	VERSION = "version"
	COMMENT = "comment"
)
View Source
const CONFIGS = "configs"
View Source
const COUNT = "count"
View Source
const GIT = "git"
View Source
const REPOS = "repos"
View Source
const SERVICE = "service"
View Source
const SPIDE = "spide"
View Source
const STATUS = "status"
View Source
const TOTAL = "total"
View Source
const TREND = "trend"

Variables

View Source
var Index = &ice.Context{Name: GIT, Help: "代码库", Commands: ice.Commands{
	GIT: {Name: "git path auto order build download", Help: "代码库", Actions: ice.MergeActions(ice.Actions{
		cli.ORDER: {Help: "加载", Hand: func(m *ice.Message, arg ...string) {
			m.Cmd(code.INSTALL, cli.ORDER, mdb.Config(m, nfs.SOURCE), "_install/libexec/git-core")
			m.Cmdy(code.INSTALL, cli.ORDER, mdb.Config(m, nfs.SOURCE), "_install/bin")
		}},
	}, code.InstallAction(nfs.SOURCE, "http://mirrors.tencent.com/macports/distfiles/git-cinnabar/git-2.31.1.tar.gz")), Hand: func(m *ice.Message, arg ...string) {
		m.Cmdy(code.INSTALL, ctx.ConfigSimple(m, nfs.SOURCE), arg)
	}},
}}

Functions

func Prefix added in v1.5.6

func Prefix(arg ...string) string

func ReposClone added in v1.5.13

func ReposClone(m *ice.Message, arg ...string) *ice.Message

func ReposList added in v1.4.4

func ReposList(m *ice.Message) *ice.Message

func ServeReceivePack added in v1.5.14

func ServeReceivePack(info bool, srvCmd ServerCommand, path string) error

func ServeUploadPack added in v1.5.14

func ServeUploadPack(info bool, srvCmd ServerCommand, path string) error

func TableGo added in v1.5.5

func TableGo(m *ice.Message, cb ice.Any) *ice.Message

Types

type ServerCommand added in v1.5.14

type ServerCommand struct {
	Stderr io.Writer
	Stdout io.WriteCloser
	Stdin  io.Reader
}

Jump to

Keyboard shortcuts

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