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

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

From
IMIngo 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
Previous: Ingo MolnarNext: Pierre Habouzit
Message 18 of 36 in “git-bisect feature suggestion: "git-bisect diff"”
  1. Ingo MolnarDec 7, 2007
  2. Junio C HamanoDec 7, 2007
  3. Junio C HamanoDec 7, 2007
  4. Ingo MolnarDec 7, 2007
  5. Junio C HamanoDec 7, 2007
  6. Ingo MolnarDec 7, 2007
  7. Jeff KingDec 7, 2007
  8. Jeff KingDec 7, 2007
  9. Junio C HamanoDec 7, 2007
  10. Jeff KingDec 7, 2007
  11. Junio C HamanoDec 7, 2007
  12. Jeff KingDec 7, 2007
  13. Junio C HamanoDec 8, 2007
  14. Christian CouderDec 8, 2007
  15. Ingo MolnarDec 8, 2007
  16. git-bisect run make -j64 kernel/ (was Re: git-bisect feature suggestion: "git-bisect diff")Christian Couder, Dec 9, 2007
  17. Ingo MolnarDec 12, 2007
  18. Ingo MolnarDec 11, 2007
  19. Pierre HabouzitDec 11, 2007
  20. Jakub NarebskiDec 11, 2007
  21. Pierre HabouzitDec 11, 2007
  22. Jeff KingDec 11, 2007
  23. Jeff KingDec 11, 2007
  24. Ingo MolnarDec 11, 2007
  25. Invert numbers and names in the git-shortlog summary mode.Pierre Habouzit, Dec 11, 2007
  26. Ingo MolnarDec 11, 2007
  27. Pierre HabouzitDec 11, 2007
  28. Nicolas PitreDec 11, 2007
  29. Junio C HamanoDec 11, 2007
  30. Ingo MolnarDec 11, 2007
  31. Pierre HabouzitDec 11, 2007
  32. Pierre HabouzitDec 11, 2007
  33. Ingo MolnarDec 11, 2007
  34. Junio C HamanoDec 11, 2007
  35. Junio C HamanoDec 11, 2007
  36. Ingo MolnarDec 11, 2007

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.