1
0
forked from x/icebergs
This commit is contained in:
IT 老营长 @云轩领航-创始人 2023-10-17 16:19:12 +08:00
parent 5f6cb250a1
commit b5f1c75ddc
2 changed files with 3 additions and 1 deletions

View File

@ -377,6 +377,7 @@ const (
REMOTE = "remote" REMOTE = "remote"
ORIGIN = "origin" ORIGIN = "origin"
CONFIG = "config" CONFIG = "config"
IGNORE = "ignore"
INDEX = "index" INDEX = "index"
TAGS = "tags" TAGS = "tags"
VERSION = "version" VERSION = "version"
@ -440,6 +441,7 @@ func init() {
}}, }},
INIT: {Name: "init origin* path", Hand: func(m *ice.Message, arg ...string) { INIT: {Name: "init origin* path", Hand: func(m *ice.Message, arg ...string) {
m.Cmd(nfs.DEFS, kit.Path(".git/config"), kit.Format(nfs.Template(m, CONFIG), m.Option(ORIGIN))) m.Cmd(nfs.DEFS, kit.Path(".git/config"), kit.Format(nfs.Template(m, CONFIG), m.Option(ORIGIN)))
m.Cmd(nfs.DEFS, kit.Path(".gitignore"), nfs.Template(m, IGNORE))
git.PlainInit(m.Option(nfs.PATH), false) git.PlainInit(m.Option(nfs.PATH), false)
_repos_insert(m, kit.Path("")) _repos_insert(m, kit.Path(""))
m.ProcessRefresh() m.ProcessRefresh()

View File

@ -18,8 +18,8 @@ lex
node node
java java
coder coder
chrome
github github
chrome
wework wework
lark lark
mp mp