forked from x/icebergs
add some
This commit is contained in:
parent
a63f5600b7
commit
6b8e6e11f9
@ -7,7 +7,6 @@ import (
|
||||
"path"
|
||||
|
||||
ice "shylinux.com/x/icebergs"
|
||||
"shylinux.com/x/icebergs/base/ctx"
|
||||
"shylinux.com/x/icebergs/base/mdb"
|
||||
"shylinux.com/x/icebergs/base/nfs"
|
||||
"shylinux.com/x/icebergs/base/tcp"
|
||||
@ -152,7 +151,7 @@ func init() {
|
||||
}, func() { m.RenderResult(msg.Append(mdb.TEXT)) })
|
||||
}
|
||||
}},
|
||||
}, mdb.HashAction(mdb.SHORT, mdb.TEXT, mdb.FIELD, "time,hash,size,type,name,text,file", ctx.ACTION, WATCH), ice.RenderAction(ice.RENDER_DOWNLOAD)), Hand: func(m *ice.Message, arg ...string) {
|
||||
}, mdb.HashAction(mdb.SHORT, mdb.TEXT, mdb.FIELD, "time,hash,size,type,name,text,file"), ice.RenderAction(ice.RENDER_DOWNLOAD)), Hand: func(m *ice.Message, arg ...string) {
|
||||
if mdb.HashSelect(m, arg...); len(arg) == 0 || m.R != nil && m.R.Method == http.MethodGet {
|
||||
m.Option(ice.MSG_ACTION, "")
|
||||
} else if m.Length() == 0 {
|
||||
|
@ -229,12 +229,9 @@ func _repos_status(m *ice.Message, p string, repos *git.Repository) error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
ignore := kit.Split(m.Cmdx(nfs.CAT, ".gitignore"), lex.NL)
|
||||
for k, v := range status {
|
||||
if kit.IsIn(k, ice.SRC_VERSION_GO, ice.SRC_BINPACK_GO, ice.SRC_BINPACK_USR_GO, ice.ETC_LOCAL_SHY) {
|
||||
continue
|
||||
} else if kit.IsIn(kit.Ext(k), "swp", "swo") || kit.HasPrefix(k, nfs.BIN, nfs.VAR, nfs.USR) && !strings.HasPrefix(k, ice.USR_LOCAL_EXPORT) {
|
||||
continue
|
||||
} else if kit.HasPrefix(k, "etc/conf/cert/") {
|
||||
if kit.HasPrefix(k, nfs.PT) || (kit.HasPrefix(k, ignore...) && !strings.HasPrefix(k, ice.USR_LOCAL_EXPORT)) {
|
||||
continue
|
||||
}
|
||||
switch m.Push(REPOS, p).Push(STATUS, string(v.Worktree)+string(v.Staging)).Push(nfs.FILE, k); v.Worktree {
|
||||
|
Loading…
x
Reference in New Issue
Block a user