Skip to content
Myr

Optimize appending deletion path in modify

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by itchyny · committed by Nico Williams · parent 371abc7 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:src/builtin.jq+1 added-1 removed
24 unmodified lines
25 | setpath([0] + $p; $v)26 ),27 (28 $$$$dot29 | setpath([1]; .[1] + [$p])29 | setpath([1, (.[1] | length)]; $p)30 )31 )32 ) | . as $dot | $dot[0] | delpaths($dot[1]);33def map_values(f): .[] |= f;
245 unmodified lines