Re: [PATCH v3 2/2] usage: add warn_once() helper for repeated warnings
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jun 1, 2022, 20:40 UTC
- Message-ID
- <xmqqtu94qfrt.fsf@gitster.g>
- In-Reply-To
- <8e29ac807c6a0cf94ea3a44ee3304011c2ad159c.1654046173.git.gitgitgadget@gmail.com>
"Derrick Stolee via GitGitGadget" <gitgitgadget@gmail.com> writes:
> In the case of the credentials in a URL, the existing test demonstrates > this per-process limitation: 'git clone' runs 'git-remote-curl' as a > child process, giving two messages. This is an improvement over the > previous six messages.
Do we call the valid_remote() helper on the same remote many number of times? Unless the duplicates appear by such a "stupid" reason, I am not sure if this is a good idea to do this deduplication.
Especially if we know we cannot do the deduplication across processes.