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

Re: [ANNOUNCE] GitStats development finished (WRT GSoC)

From
SRSverre Rabbelier <alturin@gmail.com>
Date
Jul 30, 2008, 15:41 UTC
Message-ID
<bd6139dc0807300841n3e1670cdie2cd3fec47ab0db4@mail.gmail.com>
In-Reply-To
<alpine.LSU.1.00.0807301621570.3486@wbgn129.biozentrum.uni-wuerzburg.de>

On Wed, Jul 30, 2008 at 16:22, Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:

Show 5 quoted lines
> On Wed, 30 Jul 2008, Sverre Rabbelier wrote:
>> Hehe, don't expect too much of it yet though (the 'bug' module that is),
>> there won't be any "99% of the bugs come from Dscho" yet :P.
>
> So what should I expect?  What does it show?
Atm I have 4 'metrics' (4 out of the 5 suggested ones), namely:
* Does a commit belong to a specific branch. This can be used, for
example, to mark commits on 'maint' as bugfixes with 99% reliability
(you need to make sure your regexp catches all branches you are
interested in, when Junio splits of '1.5.6.4' of maint, it might list
'1.5.6.4' instead of 'maint', as they both point at the same ref).
* Does a commit fully revert another one (e.g., make commit A, do 'git
revert A', it will detect that commit as reverting A).
* Does the commit message match a certain regexp (e.g., if it contains
the word "fixes", it is likely a fix).
* Does the commit diff match a regexp (e.g., a change from
"test_expect_failure" -> "test_expect_success")
- (not tweaked yet) Does a commit partially revert another one, this
needs some tweaking, otherwise small changes are quickly seen as
similar. (If you have two unrelated one-lines, and you set it to
ignore one difference...)

You have to configure a few things to get it running (for example, you need to tell it what branch is your maintenance branch, if any). You can also configure how valued each metric is (you can say "if it's in 'maint', add 5 points, but if it's a revert, add 10, and add only 1 point if it matches this regexp). Configuration is trivially done with 'git config GitStats.key value".

(Will add the above to the bug module's documentation)

If anyone comes up with any more metrics to determine whether something is a bug it can be easily hooked in.

-- 
Cheers,

Sverre Rabbelier
Previous: Johannes Schindelin
Message 5 of 5 in “[ANNOUNCE] GitStats development finished (WRT GSoC)”
  1. Sverre RabbelierJul 29, 2008
  2. Junio C HamanoJul 30, 2008
  3. Sverre RabbelierJul 30, 2008
  4. Johannes SchindelinJul 30, 2008
  5. Sverre RabbelierJul 30, 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.