diff options
| author | 2026-03-06 10:59:53 +0800 | |
|---|---|---|
| committer | 2026-03-06 10:59:53 +0800 | |
| commit | 95f8f3d45fe077042df4fd4afa73d4e419bc9974 (patch) | |
| tree | 1e650b788eb4fbe5fc61ad0df700de58ebba40c5 /reachability/walk_expand.go | |
| parent | format/commitgraph: Split layer files (diff) | |
| signature | No signature | |
reachability: Split walk files
Diffstat (limited to 'reachability/walk_expand.go')
| -rw-r--r-- | reachability/walk_expand.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/reachability/walk_expand.go b/reachability/walk_expand.go new file mode 100644 index 00000000..e36534a2 --- /dev/null +++ b/reachability/walk_expand.go @@ -0,0 +1,9 @@ +package reachability + +func (walk *Walk) expand(item walkItem) ([]walkItem, error) { + if walk.domain == DomainCommits { + return walk.expandCommits(item) + } + + return walk.expandObjects(item) +} |
