git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] credential: remove unnecessary forward declarations

From
Junio C Hamano <gitster@pobox.com>
Date
Apr 24, 2020, 20:26 UTC
Message-ID
<xmqq7dy4d40s.fsf@gitster.c.googlers.com>
In-Reply-To
<20200424112356.74165-1-carenas@gmail.com>
Carlo Marcelo Arenas Belón  <carenas@gmail.com> writes:
Show 12 quoted lines
> 46fd7b3900 (credential: allow wildcard patterns when matching config,
> 2020-02-20) introduced a forward declaration for credential_describe()
> that wasn't needed as well as a forward declaration for a similar
> function that was implemented a few lines below.
>
> remove the unnecessary forward declarations by moving the function
> to where it is needed instead.
>
> Signed-off-by: Carlo Marcelo Arenas Belón <carenas@gmail.com>
> ---
>  credential.c | 37 +++++++++++++++++--------------------
>  1 file changed, 17 insertions(+), 20 deletions(-)

I would rather not to see this kind of code churn for "this way it is cleaner" (as opposed to "this is broken and needs fixing") in the area of code that were _very_ actively touched and across _wide_ range of versions. Maybe long after the dust from 2.17.4 and friends settles, but not now.

Thanks.
Previous: Carlo Marcelo Arenas Belón
Message 2 of 2 in “credential: remove unnecessary forward declarations”
  1. credential: remove unnecessary forward declarationsCarlo Marcelo Arenas Belón, Apr 24, 2020
  2. Junio C HamanoApr 24, 2020

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.