Re: git-bisect feature suggestion: "git-bisect diff"
- From
- Ingo Molnar <mingo@elte.hu>
- Date
- Dec 11, 2007, 09:24 UTC
- Message-ID
- <20071211092446.GA4703@elte.hu>
- In-Reply-To
- <200712080636.12982.chriscool@tuxfamily.org>
* Christian Couder <chriscool@tuxfamily.org> wrote:
> Tell us if you have other scripts or suggestions related to > git-bisect.
not strictly git-bisect related, but i've got the git-authors oneliner script below that i find very useful when figuring out whom to mail to related to a bug in any given kernel subsystem. For example when i see some USB problem i can do:
git-authors v2.6.23.. drivers/usb/
which gives me the most active (and hence most relevant) developers in an area:
9 Pete Zaitcev <zaitcev@redhat.com>
10 Inaky Perez-Gonzalez <inaky@linux.intel.com>
12 David Brownell <david-b@pacbell.net>
12 Oliver Neukum <oliver@neukum.org>
23 Alan Cox <alan@lxorguk.ukuu.org.uk>
49 Alan Stern <stern@rowland.harvard.edu>with an email to pick up. In terms of accuracy this beats the MAINTAINERS file most of the time. And even when MAINTAINERS is accurate - in this particular case there are 48 'USB' related entries in the MAINTAINERS file - totally hard to sort out for a newbie.
git-authors is also much easier and more natural to use - when i find problems it's usually related to a file, and i can run this:
$ git-authors v2.6.23.. kernel/pid.c
1 Eric W. Biederman <ebiederm@xmission.com>
1 Pavel Emelianov <xemul@openvz.org>
1 Serge E. Hallyn <serue@us.ibm.com>
3 Sukadev Bhattiprolu <sukadev@us.ibm.com>
10 Pavel Emelyanov <xemul@openvz.org>which works on a very finegrained level and gives a better "overview" than a pure git-log. Perhaps this could be a --authorstats option of git-log perhaps?
Ingo
---------{ git-authors }---------> #!/bin/bash
git-log $@ | grep Author: | cut -d: -f2 | sort | uniq -c | sort -n