davidmwine / gitinspector

Automatically exported from code.google.com/p/gitinspector
GNU General Public License v3.0
0 stars 0 forks source link

Not all commits and authors are showing up #61

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Tried to use this for FStar contributors, there are 11 of them: 
https://github.com/FStarLang/FStar/graphs/contributors
2. Running gitinspector only displays 4 contributors, and the number of 
commits, insertions, deletions is much lower than reality.

[hritcu@detained pub]$ gitinspector -H    
The following historical commit information, by author, was found in the 
repository:

Author                     Commits    Insertions      Deletions    % of changes
Antoine Delignat-Lav             2           328              2            3.19
Nikhil Swamy                     2          8332              0           80.49
Pierre-Yves Strub                4          1554            136           16.33

Below are the number of rows from each author that have survived and are still 
intact in the current revision:

Author                     Rows       % in comments
Antoine Delignat-Lav        326                0.00
Nikhil Swamy                518                1.16
Pierre-Yves Strub          1418                4.44
nikswamy                   7814               20.03
[hritcu@detained pub]$ gitinspector   
The following historical commit information, by author, was found in the 
repository:

Author                     Commits    Insertions      Deletions    % of changes
Antoine Delignat-Lav             2           328              2            1.93
Nikhil Swamy                     3          8850            518           54.91
Pierre-Yves Strub                6          4390           2972           43.15

Below are the number of rows from each author that have survived and are still 
intact in the current revision:

Author                     Rows       % in comments
Antoine Delignat-Lav        326                0.00
Nikhil Swamy                518                1.16
Pierre-Yves Strub          1418                4.44
nikswamy                   7814               20.03

What is the expected output? What do you see instead?

11 contributors.

What version of the product are you using? What version of Python? On what
operating system?

gitinspector 0.3.2 on Arch Linux
Python 2.7.9
Python 3.4.2

Original issue reported on code.google.com by Catalin....@gmail.com on 26 Feb 2015 at 7:33

GoogleCodeExporter commented 9 years ago
I eventually understood that by default gitinspector only considers a hand full 
of file extensions for it's counting, and most our files weren't on that list. 
Moreover, I found no way to make it consider all files, so I had to manually 
create a huge white-list with all extensions. Not the best starting user 
experience, but eventually it got the job done.

Original comment by Catalin....@gmail.com on 26 Feb 2015 at 9:24

GoogleCodeExporter commented 9 years ago
Correct. I'm merging this with issue 60, as it is loosely related. Note though 
that the default behavior will always be to target source code files. However, 
something will eventually be added to easier specify extensions that should be 
included in the statistics.

Also note that for metrics and comments to be correctly calculated - support 
for unsupported extensions have to be added to comment.py and metrics.py. 
*.fs/*.fsi files are not currently covered. See issue 59 for more information. 
Patches are welcome.

/Adam Waldenberg

Original comment by gitinspe...@ejwa.se on 26 Feb 2015 at 11:59