hoxu / gitstats

git history statistics generator
http://gitstats.sourceforge.net/
1.6k stars 486 forks source link

Add support for blacklisting specific paths/files #25

Open ajbonkoski opened 10 years ago

ajbonkoski commented 10 years ago

Currently, if someone commits a large configuration file or some third-party code, it distorts the stats as well as the associated graphs. Is there a way to blacklist certain files or paths?

Lines of Code (with names removed)lines_of_code

Thanks, -Anthony

P.S. I work in robotics, so large configuration files are not uncommon (e.g. a list of GPS way-points for a testing area)

hoxu commented 10 years ago

From gitstats manual page, FAQ section:

Q: I have files in my git repository that I would like to exclude from the statistics, how do I do that?

A: At the moment the only way is to use git-filter-branch(1) to create a temporary repository and generate the statistics from that.