From: Linus Torvalds <torvalds@linux-foundation.org>
To: Andrew Morton <akpm@linux-foundation.org>,
Junio C Hamano <gitster@pobox.com>
Cc: Ingo Molnar <mingo@elte.hu>,
Git Mailing List <git@vger.kernel.org>,
Thomas Gleixner <tglx@linutronix.de>
Subject: Re: [git pull] core/softirq for v2.6.27
Date: Mon, 14 Jul 2008 10:23:15 -0700 (PDT) [thread overview]
Message-ID: <alpine.LFD.1.10.0807141019010.3305@woody.linux-foundation.org> (raw)
In-Reply-To: <alpine.LFD.1.10.0807140948220.3305@woody.linux-foundation.org>
On Mon, 14 Jul 2008, Linus Torvalds wrote:
>
> 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
next prev parent reply other threads:[~2008-07-14 17:26 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20080714144243.GA21079@elte.hu>
[not found] ` <20080714092215.0efd7fa3.akpm@linux-foundation.org>
[not found] ` <20080714163141.GA21068@elte.hu>
[not found] ` <20080714094422.e7ae255a.akpm@linux-foundation.org>
2008-07-14 17:11 ` [git pull] core/softirq for v2.6.27 Linus Torvalds
2008-07-14 17:23 ` Linus Torvalds [this message]
2008-07-14 17:46 ` Johannes Schindelin
2008-07-14 18:08 ` [PATCH] shortlog: support --pretty=format: option Johannes Schindelin
2008-07-14 17:46 ` [git pull] core/softirq for v2.6.27 Linus Torvalds
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=alpine.LFD.1.10.0807141019010.3305@woody.linux-foundation.org \
--to=torvalds@linux-foundation.org \
--cc=akpm@linux-foundation.org \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=mingo@elte.hu \
--cc=tglx@linutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).