mirror of
https://github.com/anyproto/any-sync.git
synced 2025-06-08 14:07:02 +09:00
Add IterateSkip
This commit is contained in:
parent
2ba5555b6e
commit
fa1ea8d417
5 changed files with 41 additions and 12 deletions
|
@ -21,7 +21,7 @@ import (
|
|||
func (t *Tree) Graph(parser DescriptionParser) (data string, err error) {
|
||||
var order = make(map[string]string)
|
||||
var seq = 0
|
||||
t.Iterate(t.RootId(), func(c *Change) (isContinue bool) {
|
||||
t.IterateSkip(t.RootId(), func(c *Change) (isContinue bool) {
|
||||
v := order[c.Id]
|
||||
if v == "" {
|
||||
order[c.Id] = fmt.Sprint(seq)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue