-
-
Notifications
You must be signed in to change notification settings - Fork 11
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
Add support for filtering by language type #208
Conversation
Thank you for your PR! Is there a reason you've marked it as a draft? |
No problem! This PR currently works, however, the caching of results for unique combinations of commit SHA hash and the This would get worse if I am thinking of caching results for the SHA hash only, and filtering by language type afterwards (filtering is cheap). What do you think? |
I think that's the right approach, reducing cloning is critical since RAM is quite limited on the VPS machine. |
I've reverted the caching to SHA hash only. |
Thank you for your PR! |
Closes #6
Closes #4
You can choose to count lines only for specific language type(s), by using the
?type=
query string. Languages are to be separated by a comma.For example,
https://tokei.rs/b1/github/XAMPPRocky/tokei?type=JSON,Rust,Markdown
?type=
blank leads to the default behavior of counting lines for all supported languages.Live Demo