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

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

From
Junio C Hamano <gitster@pobox.com>
Date
May 17, 2013, 16:22 UTC
Message-ID
<7vobc91squ.fsf@alter.siamese.dyndns.org>
In-Reply-To
<CAMP44s2QcFStPtE8cSbH7jWvUOUVRSgGNYNVoDN6exRdW6xNYA@mail.gmail.com>
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.

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.
 * 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").

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. 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.

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.

So that is the arbiter's decision. Call it *my* opinion or whatever you like; it does not change anything.

[Footnote]

*1* That would have ended this thread without wasting everybody's time.

Previous: Felipe ContrerasNext: Felipe Contreras
Message 29 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.