MCPcopy Create free account
hub / github.com/codecombat/codecombat / walk

Function walk

scripts/merge-git.py:5–12  ·  view source on GitHub ↗
(t, path)

Source from the content-addressed store, hash-verified

3def find_targets(tree):
4 targets = []
5 def walk(t, path):
6 for o in t:
7 if o.type == GIT_OBJ_TREE:
8 walk(o, path + [o.name])
9
10 other = o.name.replace("coco", "ozar")
11 if o.name != other and other in t and o.id == t[other].id:
12 targets.append(path + [o.name])
13
14
15 walk(tree, [])

Callers 1

find_targetsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected