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

Re: [git pull] core/softirq for v2.6.27

From
Linus Torvalds <torvalds@linux-foundation.org>
Date
Jul 14, 2008, 17:23 UTC
Message-ID
<alpine.LFD.1.10.0807141019010.3305@woody.linux-foundation.org>
In-Reply-To
<alpine.LFD.1.10.0807140948220.3305@woody.linux-foundation.org>
On Mon, 14 Jul 2008, Linus Torvalds wrote:
Show 5 quoted lines
> 
> As it is, that is one ugly function that only takes the one-liner thing - 
> at least partly because of how it traditionally worked (as a a filter over 
> the log messages, rather than as a "git shortlog xyz..abc" kind of 
> stand-alone thing).

Heh. I guess you _could_ use the filter capability here (but it will sometimes truncate the line, so..)

Some really ugly scripting like this will do it:
	#!/bin/sh
	git log --pretty='format:commit %H
	Author: %an <%ae>
	
	  %s (%h)
	' $@ | git shortlog

where we use the regular "git log" with a user-supplied format to generate a log with the subject line and the shortened hash appended (the "%s (%h)" part) and then we use "git shortlog" as a filter to sort things together by author etc.

There is absolutely _nothing_ that git won't do with a little bit of scripting, but I do have to admit that this one isn't a wonderfully beautiful script ;)

		Linus
Previous: Linus TorvaldsNext: Johannes Schindelin
Message 2 of 5 in “Re: [git pull] core/softirq for v2.6.27”
  1. Linus TorvaldsJul 14, 2008
  2. Linus TorvaldsJul 14, 2008
  3. Johannes SchindelinJul 14, 2008
  4. shortlog: support --pretty=format: optionJohannes Schindelin, Jul 14, 2008
  5. Linus TorvaldsJul 14, 2008

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.