git_stats icon indicating copy to clipboard operation
git_stats copied to clipboard

Tree option not working

Open felixwiemuth opened this issue 5 years ago • 3 comments

Running with -p / --tree option to select a tree from the repository to generate statistics for has no effect, always the whole repository is considered. The resulting HTML page even shows "." for "Tree path" in the overview.

Examples (executed at the root of a git repository): git_stats generate -d mydir -o stats git_stats generate -d mydir/ -o stats git_stats generate -d ./mydir -o stats git_stats generate -d ./mydir/ -o stats git_stats generate -p . --tree ./mydir -o stats

I tried a lot of combinations of short/long option, how to specify the tree path etc. I tried it with a repository with longer history and a small test repository with just two files (A, mydir/B).

Version: 1.0.17 (installed via gem install) OS: Arch Linux

felixwiemuth avatar Feb 04 '19 10:02 felixwiemuth

Same for me.

SebiTimeWaster avatar Feb 08 '19 13:02 SebiTimeWaster

What is tree supposed to be?

I want to graph the stats for a particular subdirectory of my repo. Is that what this option is for?

mdavis-xyz avatar Oct 18 '20 23:10 mdavis-xyz

I had the same issue, anyone could find the way to get stat fo a specific directory?

o0x2a avatar Mar 08 '21 09:03 o0x2a