From: Junio C Hamano Date: Thu, 23 Oct 2025 13:42:38 GMT Subject: Re: Regression in `git diff --quiet HEAD` when a new file is staged Message-ID: In-Reply-To: <09150C80-0238-49C3-BAA2-42983741C905@gmail.com> Lidong Yan writes: > Do you think we should make a new ‘going to be flushed’ queue > and flush them out of ‘quiet’ loop would be a good idea? I think we > shouldn’t discard output of flush_one_pair(). Thanks for catching my sillyness. Peff caught the same thing but in each iteration of this loop we do the "diff -p >/dev/null" to decide if we do "diff --(raw|name-only|...)" for the path, so redirecting the whole thing would break it big time.