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

Re: Dates in Commits and other issues of style (Re: [RFC 2/5] Pretty Print: show tz when using DATE_LOCAL)

From
Junio C Hamano <gitster@pobox.com>
Date
Apr 25, 2011, 03:57 UTC
Message-ID
<7vhb9nkmo1.fsf@alter.siamese.dyndns.org>
In-Reply-To
<87sjt76rzo.fsf@catnip.gol.com>
Miles Bader <miles@gnu.org> writes:
Show 6 quoted lines
> Michael Witten <mfwitten@gmail.com> writes:
>> and I feel like
>> you are now
>> nitpicking.
>
> Wait, isn't nitpicking his job?!

Enforcing consistency is one of the important tasks the maintainers do in their projects. Besides ensuring that the intent of the change each patch brings to the codebase is good, that the log entry describes the change in a useful way for future readers, and that the patch correctly implements the described change, we also need to make sure that the resulting code matches the style of the surrounding code, and the style, structure and tone the log messages are delivered in a consistent voice. Otherwise it would quickly get very tiring when you have to dig into the history of the codebase. The code and the history are read a lot more often than are written.

When a casual and occasional contributor sends in a good change whose only sin is style violation, I do not mind touching up its proposed commit log message or the patch text, and I often do.

But I expect contributors who return here often to be more considerate than one-time contributors, and that is why I give style reminders.

The purpose of the style reminder is so that they can help me and other reviewers concentrate on the substance (Is what it does good? Is it explained well? Is it implemented well?) without having to spend unnecessary time fixing the form (Does the new code fit well with the surrounding code? Does the message flow well in "git log" and easy to understand?) when they submit their changes the next time.

Please do not mistake a style reminder as an opportunity to promote your own style that would not match what we have established here. I could make a black-list of people I should avoid giving style reminders and instead fix all of their submissions silently, because giving style remainders to them will waste people's time by creating a discussion thread like this one.

I really wish I do not have to do so.

Such an arrangement would not scale. Given two sets of patches with equal goodness in substance, if one also matches our style and the other deliberately asks me to spend extra time to whip it into our style, the latter naturally has to be assigned a lower priority. After all, there is only 24 hours in a day, and my time is better spent on substance not form, and definitely not on responding to quibblings about styles.

The only two "workable" solutions are either (1) everybody tries to be consistent with the project's style, or (2) allow everybody to stick to their own style, making the resulting code and history unpleasant to read.

I'd be failing the community if I took the latter approach.
Previous: Miles BaderNext: Jakub Narebski
Message 7 of 37 in “[RFC 0/5] Date Mode: Add --time-zone; deprecate --date=local”
  1. Michael WittenApr 20, 2011
  2. 1/5 Light refactoring of date infrastructureMichael Witten, Apr 20, 2011
  3. 2/5 Pretty Print: show tz when using DATE_LOCALMichael Witten, Apr 20, 2011
  4. Junio C HamanoApr 21, 2011
  5. Dates in Commits and other issues of style (Re: [RFC 2/5] Pretty Print: show tz when using DATE_LOCAL)Michael Witten, Apr 22, 2011
  6. Miles BaderApr 25, 2011
  7. Junio C HamanoApr 25, 2011
  8. Jakub NarebskiApr 25, 2011
  9. Junio C HamanoApr 25, 2011
  10. Michael WittenApr 22, 2011
  11. Junio C HamanoApr 22, 2011
  12. 3/5 Date Mode: ImplementationMichael Witten, Apr 20, 2011
  13. Junio C HamanoApr 21, 2011
  14. 4/5 Date Mode: DocumentationMichael Witten, Apr 20, 2011
  15. 5/5 Date Mode: TestsMichael Witten, Apr 20, 2011
  16. Junio C HamanoApr 21, 2011
  17. Michael WittenApr 23, 2011
  18. Michael WittenApr 23, 2011
  19. Time zone option name (Re: [RFC 5/5] Date Mode: Tests)Michael Witten, Apr 23, 2011
  20. Junio C HamanoApr 23, 2011
  21. Michael WittenApr 23, 2011
  22. Jeff KingApr 20, 2011
  23. Michael WittenApr 20, 2011
  24. Junio C HamanoApr 21, 2011
  25. Michael WittenApr 21, 2011
  26. Junio C HamanoApr 21, 2011
  27. Michael WittenApr 21, 2011
  28. Michael WittenApr 20, 2011
  29. Michael WittenApr 20, 2011
  30. Michael WittenApr 20, 2011
  31. Tabs and spaces (Re: [RFC 0/5] Date Mode: Add --time-zone; deprecate --date=local)Jonathan Nieder, Apr 21, 2011
  32. Michael WittenApr 21, 2011
  33. Jonathan NiederApr 21, 2011
  34. Michael WittenApr 21, 2011
  35. Thiago FarinaApr 21, 2011
  36. Alex RiesenApr 21, 2011
  37. Michael WittenApr 21, 2011

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.