From: Junio C Hamano Date: Thu, 02 Jun 2022 17:53:26 GMT Subject: Re: [PATCH v3 2/2] usage: add warn_once() helper for repeated warnings Message-ID: In-Reply-To: <376e65b1-3001-9bf8-8d08-dcfd9c6a8caf@github.com> Derrick Stolee writes: > Yes, you're right. I should use the output 'struct url_inf' from > url_normalize() to construct the redacted URL. It has the downside > that the output URL can be slightly different from the input URL, > but a user should still be able to diagnose how to resolve the > situation. Ah, the error message is based on pre-normalization which may very well be different, as that is the whole point of normalization ;-) We'd redact password part in the error message anyway, so it may not be a huge deal.