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

Re: [PATCH] symbolic-ref: trivial style fix

From
Felipe Contreras <felipe.contreras@gmail.com>
Date
Oct 16, 2013, 03:33 UTC
Message-ID
<525e091764958_81a151de74aa@nysa.notmuch>
In-Reply-To
<xmqq4n8ich89.fsf@gitster.dls.corp.google.com>
Junio C Hamano wrote:
Show 11 quoted lines
> Felipe Contreras <felipe.contreras@gmail.com> writes:
> 
> > Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
> > ---
> 
> Let's do something like this instead.
> 
>  - We usually refrain from making such a tree-wide change in order
>    to avoid unnecessary conflicts with other "real work" patches,
>    but the end result does not have a potentially cumbersome
>    tree-wide impact.

You might want to change that phrasing to "we usually give low priority". Sure, this is low priority, but this is something has to be done sooner or later, if we don't the code-style will be forever inconsistent.

If there is a conflict it would be sensible to delay the change for another release perhaps, it's perfectly sensible to ask the submitter to set another version, and hopefully there would be no conflict.

Usually resolving the conflict is trivial, but there's a lot of options.

Refraining from making a code-style fix is not ideal. We want those. It's only a matter of how to implement them.

>  - We also tend to frown upon an "I fixed it here only because I
>    happened to notice this one, there may be others but it is up to
>    the readers to see if there are other instances" half-assed code
>    churn.

If you have more general patch, sure, but would you really reject a patch that fixes one thing, because it doesn't fix all similar things at the same time?

Show 6 quoted lines
> The point of the proposed log message is to tell readers that this
> is a tree-wide clean-up that is worth applying.
> 
> -- >8 --
> From: Felipe Contreras <felipe.contreras@gmail.com>
> Subject: C: have space around && and || operators

Saying this patch is from me is not really accurate, it's based on a patch by me, or it was reported by me, but it's not really from me. I don't have a problem taking the credit though, as probably half the change is finding out there's a problem, just saying.

-- 
Felipe Contreras
Previous: Junio C HamanoNext: Junio C Hamano
Message 5 of 6 in “symbolic-ref: trivial style fix”
  1. symbolic-ref: trivial style fixFelipe Contreras, Sep 21, 2013
  2. Junio C HamanoOct 15, 2013
  3. Jonathan NiederOct 15, 2013
  4. Junio C HamanoOct 15, 2013
  5. Felipe ContrerasOct 16, 2013
  6. Junio C HamanoOct 16, 2013

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.