skip full content comparison in 'got status' if file sizes differ
commitf61329c0eec5e9caf6953aa2709a47e9462e65fa
authorStefan Sperling <stsp@stsp.name>
Mon, 20 Jan 2025 11:03:02 +0000 (20 11:03 +0000)
committerThomas Adam <thomas@xteddy.org>
Fri, 24 Jan 2025 22:02:34 +0000 (24 22:02 +0000)
tree737727f6d252fe5254e339d2e41e20e509e5746a
parentb14eda0ab0630951b6e93297e6fe5370f0db98e3
skip full content comparison in 'got status' if file sizes differ

Speeds up 'got status' in work trees that contain large files which
are modified.

This change exposes bugs in 'got revert' which now manifest as test failures.
One bug where the size recorded in the file index is not updated during
revert, and another where a wrong base commit is recorded in the file
index entry during revert. Fix those bugs, too.

ok jamsek
lib/worktree.c