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

Re: [PATCH 2/2] shortlog: add '--sort-key' and '--sort-key-regexp' options

From
Linus Torvalds <torvalds@linux-foundation.org>
Date
Jul 15, 2009, 15:11 UTC
Message-ID
<alpine.LFD.2.01.0907150807401.13838@localhost.localdomain>
In-Reply-To
<alpine.DEB.1.00.0907151316320.4410@intel-tinevez-2-302>
On Wed, 15 Jul 2009, Johannes Schindelin wrote:
> 
> Instead of always sorting by author, allow to sort by either
> a whitespace-delimited field or by a regular expression (first group)
> on the oneline.

Ok, I got a SIGSEGV on the regexp, because I didn't react to the "first group" part. So I did

	git shortlog --pretty=%cD --sort-key-regex ' [0-9]*:' -ns
and it immediately segfaulted for me.
I realize that I _should_ have done
	git shortlog --pretty=%cD --sort-key-regex ' \([0-9]*\):' -ns

and then I get the expected hourly statistics, but it shouldn't have SIGSEGV'd either.

But cool small patch-series. This was exactly what I was looking for.
		Linus
Previous: Johannes SchindelinNext: Michał Kiedrowicz
Message 5 of 8 in “More 'shortlog' statistics models?”
  1. Linus TorvaldsJul 15, 2009
  2. Junio C HamanoJul 15, 2009
  3. 1/2 shortlog: refactor insert_one_record()Johannes Schindelin, Jul 15, 2009
  4. 2/2 shortlog: add '--sort-key' and '--sort-key-regexp' optionsJohannes Schindelin, Jul 15, 2009
  5. Linus TorvaldsJul 15, 2009
  6. Michał KiedrowiczJul 15, 2009
  7. Jakub NarebskiJul 15, 2009
  8. Sverre RabbelierJul 15, 2009

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.