git-quick-stats icon indicating copy to clipboard operation
git-quick-stats copied to clipboard

[Feature Request] Filter stats to specific subdirectory

Open xTdub opened this issue 6 years ago • 2 comments

For large repos it would be nice to be able to get stats for a particular subdirectory, instead of the repo as a whole.

xTdub avatar Feb 04 '20 21:02 xTdub

Hi @xTdub, Have you try to use the pathspec definition?

eg. include specific directory: export _GIT_PATHSPEC=':directoryname*' && git-quick-stats

arzzen avatar Feb 13 '20 12:02 arzzen

I tried using pathspec as you suggested, however the behavior isn't what I would expect. Filtered to my directory of interest, generating "Contribution stats (by author)" gives me an empty list. However, the "My daily status" options appears to work correctly, and the list "Git commits per author" shows me stats for the entire repo.

xTdub avatar Feb 20 '20 22:02 xTdub