Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Filter stats to specific subdirectory #92

Open
xTdub opened this issue Feb 4, 2020 · 2 comments
Open

[Feature Request] Filter stats to specific subdirectory #92

xTdub opened this issue Feb 4, 2020 · 2 comments
Assignees

Comments

@xTdub
Copy link

xTdub commented Feb 4, 2020

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 xTdub changed the title Filter stats to specific subdirectory [Feature Request] Filter stats to specific subdirectory Feb 4, 2020
@arzzen arzzen self-assigned this Feb 5, 2020
@arzzen
Copy link
Owner

arzzen commented Feb 13, 2020

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

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

@xTdub
Copy link
Author

xTdub commented Feb 20, 2020

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.

dotmpe added a commit to dotmpe/git-quick-stats that referenced this issue Feb 24, 2022
Argument _pathspec was missing in places, fixed at:

- -j / jsonOutput
- -b / branchTree
- -Y / commitsByYear
- -m / commitsByMonth
- -w / commitsByWeekday
- -o / commitsByHour
dotmpe added a commit to dotmpe/git-quick-stats that referenced this issue Feb 24, 2022
Argument _pathspec was missing in places, fixed at:

- -j / jsonOutput
- -b / branchTree
- -Y / commitsByYear
- -m / commitsByMonth
- -w / commitsByWeekday
- -o / commitsByHour
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants