From: Junio C Hamano Date: Thu, 08 Sep 2022 00:03:58 GMT Subject: Re: Re* [PATCH] tests: replace mingw_test_cmp with a helper in C Message-ID: In-Reply-To: <22402f5d-c463-acee-f57d-e507f23822ca@web.de> René Scharfe writes: > This test passes even without the changes to diff-no-index.c above. > Because diff.c::diff_fill_oid_info() sets an all-zero object ID for > stdin on both sides, I guess, so the comparison is skipped even though > the data is read already for the first dash and the data size of the > second one is thus zero? OK, that sounds like a happy accident ;-)