[Push] Add a local files-diff command#379
Merged
Merged
Conversation
Contributor
Pull pipeline performance —
|
| Stage | PR | trunk | Δ | Status | Details |
|---|---|---|---|---|---|
playground-sqlite-db-pull |
9.91 s | 9.63 s | ⚪ +281 ms (+2.9%) | ✓ | condition=db-pull in PHP.wasm runtime=php.wasm 8.3 wp_mysql_parser=enabled mode=lexer native_lexer=verified native_token_stream=WP_MySQL_Native_Token_Stream native_token_count=18 native_parser=selected trunk: condition=db-pull in PHP.wasm runtime=php.wasm 8.3 wp_mysql_parser=enabled mode=lexer native_lexer=verified native_token_stream=WP_MySQL_Native_Token_Stream native_token_count=18 native_parser=selected |
playground-sqlite-db-apply |
3.62 s | 3.65 s | ⚪ -30 ms (-0.8%) | ✓ | condition=db-apply to SQLite in PHP.wasm runtime=php.wasm 8.3 wp_mysql_parser=enabled mode=parser native_lexer=verified native_token_stream=WP_MySQL_Native_Token_Stream native_token_count=18 native_parser=verified native_ast=WP_MySQL_Native_Parser_Node sqlite_driver_parser=verified trunk: condition=db-apply to SQLite in PHP.wasm runtime=php.wasm 8.3 wp_mysql_parser=enabled mode=parser native_lexer=verified native_token_stream=WP_MySQL_Native_Token_Stream native_token_count=18 native_parser=verified native_ast=WP_MySQL_Native_Parser_Node sqlite_driver_parser=verified |
| Total | 13.53 s | 13.28 s | ⚪ +251 ms (+1.9%) |
Numbers carry runner noise; treat single-run deltas as directional, not authoritative.
📈 Trunk performance history — commit-by-commit timeline.
adamziel
force-pushed
the
adamziel/files-local-diff-command
branch
3 times, most recently
from
July 21, 2026 19:28
467fbf3 to
a0f683a
Compare
adamziel
force-pushed
the
adamziel/files-local-diff-command
branch
from
July 21, 2026 20:53
b4e17ef to
ac45313
Compare
adamziel
force-pushed
the
adamziel/files-local-diff-command
branch
from
July 21, 2026 22:12
ac45313 to
3126ef3
Compare
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
adamziel
force-pushed
the
adamziel/files-local-diff-command
branch
from
July 21, 2026 22:36
3126ef3 to
74d6077
Compare
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
adamziel
force-pushed
the
adamziel/files-local-diff-command
branch
from
July 21, 2026 23:01
74d6077 to
9e85c29
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
reprint files-diff <target-url> --state-dir=DIR --fs-root=DIRprints the pair's local minimized push operation plan before target exclusions by comparing the local tree with its previous local index. It makes no network request and requires no secret.Background
A completed files-push saves the local path type, size, and ctime used to plan the next push. Until now that comparison was only available inside files-push.
This change
files-diff derives the same pair key as files-push and requires the same target URL, state directory, and local tree that produced the previous local index. It emits JSONL push records with
path_b64,type,size, andctime, followed by delete records withpath_b64and acompleterecord with both counts. Paths remain base64 so arbitrary filesystem bytes survive JSON.After adding
wp-content/themes/my-theme/style.cssand deletingwp-content/plugins/old-plugin, a report looks like this:The command leaves the previous local index unchanged and stores no resume state. An interrupted run discards its temporary plan; the next run rebuilds and prints the complete report from the beginning.
This renames
local_index_at_previous_push.jsonltoprevious_local_index.jsonland gives PushPlan a caller-supplied previous local index, so files-push and files-diff use the same local diff implementation.Testing
Complete a files-push, stop the target, then add, edit, delete, and change the type of paths in the same local tree. Run files-diff with the same target URL, state directory, and local tree; check the base64 JSONL push and delete records and final counts. Run it again without changing the tree and confirm it prints the same complete report without changing
previous_local_index.jsonl.