How do I modify gitstats to only utilize a specified file extension for it's statistics?

Posted by Fake Code Monkey Rashid on Stack Overflow See other posts from Stack Overflow or by Fake Code Monkey Rashid
Published on 2011-01-13T23:49:54Z Indexed on 2011/01/13 23:53 UTC
Read the original article Hit count: 252

Filed under:

Hello good people!

The website of the statistics generator in question is:

http://gitstats.sourceforge.net/

It's git repo can be cloned from:

git clone git://repo.or.cz/gitstats.git

What I want to do is something like:

./gitstatus --ext=".py" /input/foo /output/bar

Failing being able to easily pass the above option without heavy modification, I'd just hardcore the file extentsion I want to be included.

However, I'm unsure of the relevant section of code to modify and even if I did no, I'm unsure of how to start such modifications.

It's seems like it'd be rather simple but alas...

© Stack Overflow or respective owner

Related posts about python