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

Re: [PATCH] git-contacts: Add recognition of Reported-by

From
Junio C Hamano <gitster@pobox.com>
Date
Jul 24, 2017, 19:29 UTC
Message-ID
<xmqqzibtd473.fsf@gitster.mtv.corp.google.com>
In-Reply-To
<20170724183103.b4vbr5xkijj7s7z3@sigill.intra.peff.net>
Jeff King <peff@peff.net> writes:
Show 13 quoted lines
>> I also should have mentioned the need for a way to say "remove all
>> hardcoded default and start from scratch".
>
> There's already some prior art around trailers in the trailer.* config.
> I wonder if it would make sense to claim a new key there, like:
>
>   git config trailer.Reported-by.autocc true
>
> If "Reported-by" is a trailer that your project uses, then there may be
> some benefit to setting up other config related to it, and this would
> mesh nicely. And then potentially other programs besides git-contacts
> would want to respect that flag (perhaps send-email would even want to
> do it itself; I think it already respects cc and s-o-b headers).
Sounds like a good suggestion.  But...

If I understand your proposal, the trailer stuff would still not care what value .autocc is set to while doing its own thing, but the programs that read the text file that the trailer can work on would pay attention to it, and they individually have to do so? Perhaps there is a need for another mode "interpret-trailers" is told to run in, where it is given a text file with trailers in it and is told to show only the value that has .autocc bit on? Alternatively, yield <key, value> pairs so that the user of the tool can further process the value differently depending on the key, or something?

Previous: Jeff KingNext: Jeff King
Message 6 of 8 in “git-contacts: Add recognition of Reported-by”
  1. git-contacts: Add recognition of Reported-byEric Blake, Jul 21, 2017
  2. Junio C HamanoJul 21, 2017
  3. Eric BlakeJul 21, 2017
  4. Junio C HamanoJul 21, 2017
  5. Jeff KingJul 24, 2017
  6. Junio C HamanoJul 24, 2017
  7. Jeff KingJul 24, 2017
  8. Junio C HamanoJul 27, 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.