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: Add a file filter #149

Open
HuakunShen opened this issue Aug 25, 2023 · 1 comment
Open

Feature Request: Add a file filter #149

HuakunShen opened this issue Aug 25, 2023 · 1 comment

Comments

@HuakunShen
Copy link

Is your feature request related to a problem? Please describe.
Some files pushed to git don't necessarily reflect contributions. For example, package-lock.json.

Describe the solution you'd like
Add a filter to filter out contributions from specific files.

@igbanam
Copy link

igbanam commented Dec 31, 2023

This already exists.

export _GIT_PATHSPEC=':!pattern'

To see this, checkout man git-quick-stats and scroll to the bottom

You can exclude directories or files from the stats by using pathspec, example:
.PP
.B export _GIT_PATHSPEC=':!pattern'
.PP

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants