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