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

Re: [PATCH/RFC] push: anonymize URL in error output

From
Jeff King <peff@peff.net>
Date
Aug 26, 2017, 19:00 UTC
Message-ID
<20170826190056.f53htagkoz6ydboe@sigill.intra.peff.net>
In-Reply-To
<20170825193743.GD103659@google.com>
On Fri, Aug 25, 2017 at 12:37:43PM -0700, Brandon Williams wrote:
Show 13 quoted lines
> > > My knee-jerk reaction is if it's worth writing after the dashes, it's
> > > worth putting in the commit message.
> > > 
> > > However, in the case I think it is OK as-is (the motivation of "we
> > > already avoid leaking auth info to stdout, so we should do the same for
> > > error messages" seems self-contained and reasonable)
> > Well, I tend to be wordy, and most of the commit messages I saw were
> > rather short, so decided to split. Wonder, if maybe example command
> > should be included without the rest of it. Would it be useful?
> 
> I'm guilty of writing short commit messages (something I need to work
> on) but when looking through logs I much prefer to see longer messages
> explaining rationals and trade-offs.

I think as with all writing, there is both "too short" and "too long". I like having those extra bits in the commit message, too, but you have to make sure they don't drown out the main points.

I find that when a message gets long, it often benefits from revising and re-ordering. E.g., having an intro paragraph that explains the motivation and solution in one sentence, and _then_ go into the details for people who are really digging into the details. Good organization lets readers get just the level they need and skip the rest.

Easier said than done, of course. :)
-Peff
Previous: Brandon Williams
Message 7 of 7 in “push: anonymize URL in error output”
  1. push: anonymize URL in error outputIvan Vyshnevskyi, Aug 23, 2017
  2. Lars SchneiderAug 23, 2017
  3. Ivan VyshnevskyiAug 24, 2017
  4. Jeff KingAug 23, 2017
  5. Ivan VyshnevskyiAug 24, 2017
  6. Brandon WilliamsAug 25, 2017
  7. Jeff KingAug 26, 2017

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.