* Fix --diff to produce output when creating a new file Fixes #57618 * Make the check more defensive (cherry picked from commit 1fa7bfcd5d)
1fa7bfcd5d