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

Re: [PATCH 3/4] {fast-export,transport-helper}: style cleanups

From
Felipe Contreras <felipe.contreras@gmail.com>
Date
May 17, 2013, 16:35 UTC
Message-ID
<CAMP44s0o7tgUrz4xQh3H62+=625ppAOMFskOL70Nrx-O5uwaYw@mail.gmail.com>
In-Reply-To
<7vobc91squ.fsf@alter.siamese.dyndns.org>
On Fri, May 17, 2013 at 11:22 AM, Junio C Hamano <gitster@pobox.com> wrote:
Show 8 quoted lines
> Felipe Contreras <felipe.contreras@gmail.com> writes:
>
>> *You* are telling my that; it's *your* opinion and nothing else. It's
>
> I saw a review comment that points out that the continuation lines
> do not align, and you refused to say "ah, thanks for spotting" and
> reroll [*1*], so even I do not want to do so in general, I had to
> play the role of the arbiter.
Spotting what? There no style issues in my patch.
> My take on these style issues is this:
>
>  * People made mistakes in the past while doing real work.  Big
>    news: contributors and reviewers are not perfect.
That's exactly why "follow the surrounding code" is not a good guideline.
Show 7 quoted lines
>  * They survived to this day because we do not do tree-wide "style
>    fixes" for the sake of style fix, in order to avoid clashing with
>    real work in flight.
>
>  * Existing mistakes are not an excuse for adding new mistakes of
>    the same kind, especially when they are pointed out during the
>    review (this is not limited to "style issues").
Fortunately nobody is adding new mistakes in this patch.
Show 6 quoted lines
> I do not think I would reject a patch with minor style bugs like
> unaligned continuation lines, if it were a patch that does real
> work.
>
> But a "style cleanups" patch that introduces new instances of style
> breakage is a different matter.
THERE IS NO STYLE BREAKAGE.
Show 10 quoted lines
> It is clear that the original
> (picked randomly):
>
>         die ("Encountered signed tag %s; use ",
>              "--signed-tags=<mode> to handle it.",
>              sha1_to_hex(tag->object.sha1));
>
> wanted the opening double-quotes of two lines and the "sha1" at the
> beginning of the third line to align.  I see that is the local style
> a "style cleanup" change should follow.

Unless the original had a mistaken style, or there was no guideline at all, which is the case.

Show 5 quoted lines
> A patch that cleans up styles in preparation for a real work (like
> this one) is a rare and precious occasion for us to really clean up
> accumulated wart.  I do not want to see existing mistakes from other
> unrelated parts of the codebase that have not been cleaned up as an
> excuse to waste that rare occasion to do a good job of cleaning up.
This is a good job of cleaning up. It follows the coding style PERFECTLY.
> So that is the arbiter's decision.  Call it *my* opinion or whatever
> you like; it does not change anything.

You are rejecting a patch for not following your *ARBITRARY* coding style, not the project's.

All you are doing is using rhetoric to say that this patch has "broken style" doesn't follow the "project's style", and whatever, and you conveniently ignore the fact that 535 instances of this style, and the fact that it's not mentioned at all in Documentation/CodingStyle proves that it does indeed follow the project's style.

Keep using rhetoric all you want, it doesn't change the facts. You are rejecting the patch because of your own personal subjective reasons, and not because of anything related to the project's style.

> [Footnote]
>
> *1* That would have ended this thread without wasting everybody's
> time.

It would have ended if you applied the patch that follows the coding style to the letter.

-- 
Felipe Contreras
Previous: Junio C HamanoNext: Matthieu Moy
Message 30 of 40 in “trivial patches”
  1. 0/4 trivial patchesFelipe Contreras, May 9, 2013
  2. 1/4 documentation: trivial style cleanupsFelipe Contreras, May 9, 2013
  3. Junio C HamanoMay 9, 2013
  4. 2/4 transport-helper: trivial style cleanupFelipe Contreras, May 9, 2013
  5. Junio C HamanoMay 9, 2013
  6. 3/4 {fast-export,transport-helper}: style cleanupsFelipe Contreras, May 9, 2013
  7. John SzakmeisterMay 9, 2013
  8. Felipe ContrerasMay 9, 2013
  9. John SzakmeisterMay 9, 2013
  10. Felipe ContrerasMay 9, 2013
  11. Ramkumar RamachandraMay 9, 2013
  12. Felipe ContrerasMay 9, 2013
  13. Junio C HamanoMay 9, 2013
  14. Felipe ContrerasMay 9, 2013
  15. Junio C HamanoMay 9, 2013
  16. Felipe ContrerasMay 9, 2013
  17. Felipe ContrerasMay 16, 2013
  18. Junio C HamanoMay 16, 2013
  19. Felipe ContrerasMay 16, 2013
  20. Junio C HamanoMay 16, 2013
  21. Felipe ContrerasMay 16, 2013
  22. Junio C HamanoMay 16, 2013
  23. Ramkumar RamachandraMay 16, 2013
  24. Felipe ContrerasMay 16, 2013
  25. Felipe ContrerasMay 16, 2013
  26. Felipe ContrerasMay 17, 2013
  27. Ramkumar RamachandraMay 17, 2013
  28. Felipe ContrerasMay 17, 2013
  29. Junio C HamanoMay 17, 2013
  30. Felipe ContrerasMay 17, 2013
  31. Matthieu MoyMay 17, 2013
  32. Felipe ContrerasMay 17, 2013
  33. Matthieu MoyMay 17, 2013
  34. Felipe ContrerasMay 17, 2013
  35. 4/4 fast-export: trivial cleanupFelipe Contreras, May 9, 2013
  36. John SzakmeisterMay 9, 2013
  37. Felipe ContrerasMay 9, 2013
  38. John SzakmeisterMay 9, 2013
  39. Junio C HamanoMay 9, 2013
  40. Felipe ContrerasMay 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.