Find a file that changed without changing size

Both copies of report.txt are 10 bytes. Comparing their SHA-256 hashes catches the edit. Use the sample folders below to see it happen.

report.txt
Before 10 bytes
status=OK
After 10 bytes
status=NO

Each line ends with a single LF newline.

Compare the sample folders

  1. Extract the ZIP. Inside bundlediff-same-size are separate before and after folders.
  2. In BundleDiff, select Choose folder under Before and pick before. Repeat under After with after.
  3. Select Compare deliveries after hashing finishes. Open the report.txt row to see the two byte counts and hashes.

Expect one added, one removed, one modified and one unchanged file.

Expected changes by path
PathResult
report.txtModified
new-note.txtAdded
old-note.txtRemoved
readme.txtUnchanged
Before SHA-256
45b0f946735c022a9a5957bc89f4f4024d1e374d580e8f4705d7c274c155721b
After SHA-256
26edf4abc0b828ee83e45a1043eede23e256a2d1517c0a86641b6844c39bd043

Reproduce the result from a terminal

On macOS or Linux, run the following from the directory where you extracted the sample. You need Git, Node.js 24 and FileLedger. Install FileLedger.

cd bundlediff-same-size
fileledger build ./before -o ./before.json
fileledger build ./after -o ./after.json
git clone --depth 1 --branch action-v0.1.1 https://github.com/YHQT-code/hanziva-bundlediff.git bundlediff-cli
node bundlediff-cli/cli/compare.mjs ./before.json ./after.json

The final command prints JSON and exits with status 1 because differences were found. The counts object contains added: 1, removed: 1, modified: 1 and unchanged: 1.

Choose folders or recorded manifests

If you have a download and its published checksum, use the SHA-256 download verifier.

Choose folders to calculate SHA-256 from selected files. BundleDiff hashes them in your browser. You can download either folder’s manifest and keep it outside the directory it describes.

When you select two JSON manifests, BundleDiff compares the paths, sizes and hashes recorded in those files. If folder selection is unavailable in your browser, build fresh manifests with FileLedger, then select their JSON files under Before and After.