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

Re: [PATCH 2/2] pretty: add '%aA' to show domain-part of email addresses

From
Jeff King <peff@peff.net>
Date
Oct 28, 2023, 02:13 UTC
Message-ID
<20231028021301.GA35796@coredump.intra.peff.net>
In-Reply-To
<xmqq7cn7obah.fsf@gitster.g>
On Sat, Oct 28, 2023 at 09:12:06AM +0900, Junio C Hamano wrote:
Show 7 quoted lines
> Grouping @gmail.com addresses do not smell all that useful, though.
> 
> More importantly, it is not clear what "Many reports" refers to.  If
> they are *not* verbatim output from "git log" family of commands,
> iow, they are produced by post-processing output from "git log"
> family of commands, then I do not quite see why %aa is useful at
> all.

One way you could directly use this is in shortlog, which these days lets you group by specific formats. So:

  git shortlog -ns --group=format:%aA
is potentially useful.

I say "potentially" because it really depends on your project and its contributors. In git.git the results are mostly either too broad ("gmail.com" covers many unrelated people) or too narrow (I'll assume I'm the only contributor from "peff.net"). There are a few possibly useful ones ("microsoft.com", "gitlab.com", though even those are misleading because email domains don't always correspond to affiliations).

So I don't find it useful myself, but I see how it could be in the right circumstances. It also feels like a symmetric match to "%al", which already exists. I do find "aa" as the identifier a little hard to remember. I guess it's "a" for "address", though I'd have called the whole local@domain thing an address thing that. Of course "d" for domain would make sense, but that is already taken. If we could spell it as %(authoremail:domain) that would remove the question. But given the existence of "%al", I'm not too sad to see another letter allocated to this purpose in the meantime.

Just my two cents as a shortlog --format afficionado. ;) (Of course, shortlog itself is the ultimate "you could really just post-process log output" example).

-Peff
Previous: Junio C HamanoNext: Liam Beguin
Message 6 of 21 in “pretty: add %aA to show domain-part of email addresses”
  1. 0/2 pretty: add %aA to show domain-part of email addressesLiam Beguin, Oct 26, 2023
  2. 1/2 doc: pretty-formats: add missing wordLiam Beguin, Oct 26, 2023
  3. 2/2 pretty: add '%aA' to show domain-part of email addressesLiam Beguin, Oct 26, 2023
  4. Kousik SanagavarapuOct 27, 2023
  5. Junio C HamanoOct 28, 2023
  6. Jeff KingOct 28, 2023
  7. Liam BeguinOct 28, 2023
  8. Andy KoppeOct 28, 2023
  9. Andy KoppeOct 28, 2023
  10. Jeff KingOct 30, 2023
  11. Liam BeguinNov 1, 2023
  12. Junio C HamanoOct 29, 2023
  13. Junio C HamanoNov 20, 2023
  14. Liam BeguinDec 10, 2023
  15. Liam BeguinOct 28, 2023
  16. Oswald BuddenhagenOct 28, 2023
  17. Andy KoppeOct 28, 2023
  18. Andy KoppeNov 3, 2023
  19. Kousik SanagavarapuNov 3, 2023
  20. Junio C HamanoNov 4, 2023
  21. Andy KoppeNov 4, 2023

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.