mirror of
https://shylinux.com/x/icebergs
synced 2025-04-25 17:18:05 +08:00
opt some
This commit is contained in:
parent
e0ca977ba1
commit
3d9c99ae31
@ -227,7 +227,8 @@ func _repos_status(m *ice.Message, p string, repos *git.Repository) error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
ignore := kit.Split(m.Cmdx(nfs.CAT, path.Join(_repos_path(m, p), ".gitignore")), lex.NL)
|
||||
ignore := []string{}
|
||||
nfs.Exists(m, path.Join(_repos_path(m, p), ".gitignore"), func(p string) { ignore = kit.Split(m.Cmdx(nfs.CAT, p), lex.NL) })
|
||||
for k, v := range status {
|
||||
if kit.HasPrefix(k, nfs.PT) || (kit.HasPrefix(k, ignore...) && !strings.HasPrefix(k, ice.USR_LOCAL_EXPORT)) {
|
||||
continue
|
||||
|
Loading…
x
Reference in New Issue
Block a user