Re: git-bisect feature suggestion: "git-bisect diff"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



* Christian Couder <chriscool@xxxxxxxxxxxxx> 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@xxxxxxxxxx>
     10  Inaky Perez-Gonzalez <inaky@xxxxxxxxxxxxxxx>
     12  David Brownell <david-b@xxxxxxxxxxx>
     12  Oliver Neukum <oliver@xxxxxxxxxx>
     23  Alan Cox <alan@xxxxxxxxxxxxxxxxxxx>
     49  Alan Stern <stern@xxxxxxxxxxxxxxxxxxx>

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@xxxxxxxxxxxx>
      1  Pavel Emelianov <xemul@xxxxxxxxxx>
      1  Serge E. Hallyn <serue@xxxxxxxxxx>
      3  Sukadev Bhattiprolu <sukadev@xxxxxxxxxx>
     10  Pavel Emelyanov <xemul@xxxxxxxxxx>

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

-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux