Re: Regression in `git diff --quiet HEAD` when a new file is staged
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Oct 23, 2025, 13:42 UTC
- Message-ID
- <xmqqikg5wx81.fsf@gitster.g>
- In-Reply-To
- <09150C80-0238-49C3-BAA2-42983741C905@gmail.com>
Lidong Yan <yldhome2d2@gmail.com> 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.