diff options
| author | Sadeep Madurange <sadeep@asciimx.com> | 2026-04-11 13:04:09 +0800 |
|---|---|---|
| committer | Sadeep Madurange <sadeep@asciimx.com> | 2026-04-11 13:04:09 +0800 |
| commit | e7abc837c72f966bd51a07bab90d8520eda1d917 (patch) | |
| tree | 90b791afb4e999dcff724a2b9002a249751dde3e | |
| parent | c45d2aca51fd25a2ae97106729bf22d3bb42f1ca (diff) | |
| download | cvn-e7abc837c72f966bd51a07bab90d8520eda1d917.tar.gz | |
wip: clear out status commmnd.
| -rw-r--r-- | vcx | 28 |
1 files changed, 0 insertions, 28 deletions
@@ -427,31 +427,3 @@ sub stream_index { }; } -sub compare_streams { - my (@paths, $func) = @_; - - my $ixs = stream_index(); - my $wss = stream_tree($paths); - - $old = $ixs->(); - $new = $wss->(); - - # TODO: fix compare logic - while (defined $old || defined $new) { - if (defined $new && - (!defined $old || $new->{path} lt $old->{path})) { - $func->($new, 'N'); - $new = $wss->(); - } elsif (defined $old && - (!defined $new || $old->{path} lt $new->{path})) { - $func->($old, 'D'); - $old = $ixs->(); - } else { - if ($new->{mtime} != $old->{mtime} || $new->{size} != $old->{size}) { - $func->($new, 'M'); - } - $old = $ixs->(); - $new = $wss->(); - } - } -} |
