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

Re: [RFC] Use cases for 'git statistics'

From
Jakub Narebski <jnareb@gmail.com>
Date
May 13, 2008, 13:07 UTC
Message-ID
<200805131507.04912.jnareb@gmail.com>
In-Reply-To
<bd6139dc0805120604m349b1fbbr39c6dcb8d893e771@mail.gmail.com>
On Mon, 12 May 2008, Sverre Rabbelier wrote:
> [Sorry, I hit 'send' instead of 'save']
And now you apparently forgot to add git mailing list to receipients...
Show 10 quoted lines
> On Mon, May 12, 2008 at 2:40 PM, Jakub Narebski <jnareb@gmail.com> wrote:
>>  This is, IMHO, the most complex example (at least to do properly).
>>  It begins with: does given author have code touching given subsystem
>>  (i.e. is it for him/her new contribution wrt. subsystem)? How many
>>  commits he/she has affecting given subsystem? How often he/she rewrites
>>  code? How many bugs were introduced?
> 
> Ah, there is a lot more to this example than I thought. Perhaps this
> data could all be shown and then, using some "importance" metric per
> item a "grade" can be calculated?

Weighting different statistics, bayesian hypotesis/filtering, expert system, machine learning... I guess that would be quite a work to do it well. Probably would require to calculate and adjust scoring of code (difficulity) and authors (skill), and matching them...

This is certainly in the "wishlist" scope.
>>  Details I think need to be provided by maintainer...
> 
> Do you mean Junio, or the user of the program?

I mean that all I can provide is speculation. I'm not, and never was a maintainer of OSS project, and I don't know what criteria one use (perhaps unvoiced criteria) to decide whether given patch needs to be examined more closely, or the cursory browsing should be enough.

Show 9 quoted lines
>>>>  * Contributor: what happened with my code?
>>>
>>> Do you mean a "track my code" like feature? Showing the movement of a
>>> particular piece of code through the code? (Displaying information
>>> like "moved from foo.c to bar.c in commit 0123456789abcd"?)
>>
>>  I was thinking there about "git blame --reverse".
> 
> Do you mean, filter it's output for a specific user?

I mean, given the code at given version, what happened to this code? Filtering "git blame --reverse" by user might be one way of solving it.

Show 8 quoted lines
>>>>  * Searching where to contribute: what are oldest part of code dealing
>>>>   with error messages (find ancient code)?
>>>>
>> Or find the lines with oldest modification stamp with "die" or "warn",
>> or find which messages are oldest, even if wrapper have changed.
> 
> In that case, perhaps a regexp would be more suitable, to allow the
> user to search for any specific line, not just "die" or "warn"?

What I had in mind here, but didn't explain clear enough, was an extension to pickaxe search. You want to find when current error message was created, even if the way of handling it (fprintf vs. die) changed, or if code was indented, or was moved.

Or find all error messages, in the order they were created, for example in git case to find ancient error messages and replace it by something more user-friendly (or less selective about choosing friends ;-).

Show 8 quoted lines
>>  P.S. I wonder how hard to be to plug-in such SCM statistic system
>>  into something like project management, see
>>   "Joel On Software: Evidence based scheduling" (of programming tasks)
>>   http://www.joelonsoftware.com/items/2007/10/26.html
> 
> Interesting article, I think integrating statistics
> (http://www.statsvn.org/ for example) can be a very powerful tool for
> project management.
You meant http://git.koha.org/gitstat/, didn't you? ;-P

Siriously, what I had in mind was to integrate author dates and commit dates into project management system scheduling.

-- 
Jakub Narebski
Poland
Previous: Sverre RabbelierNext: Sverre Rabbelier
Message 9 of 16 in “[RFC] Use cases for 'git statistics'”
  1. Sverre RabbelierMay 8, 2008
  2. Sverre RabbelierMay 12, 2008
  3. Jakub NarebskiMay 12, 2008
  4. Sverre RabbelierMay 12, 2008
  5. Jakub NarebskiMay 12, 2008
  6. Sverre RabbelierMay 12, 2008
  7. Jakub NarebskiMay 12, 2008
  8. Sverre RabbelierMay 12, 2008
  9. Jakub NarebskiMay 13, 2008
  10. Sverre RabbelierMay 13, 2008
  11. Jakub NarebskiMay 14, 2008
  12. Andreas EricssonMay 15, 2008
  13. Junio C HamanoMay 17, 2008
  14. Sverre RabbelierMay 18, 2008
  15. Junio C HamanoMay 21, 2008
  16. Sverre RabbelierMay 21, 2008

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.