Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

How does the exclude option work #1215

Unanswered
OlaoluwaM asked this question in Q&A
Discussion options

What format does it accept? Strings? Regexes? Is there a way to differentiate between directories and files?

You must be logged in to vote

Replies: 1 comment

Comment options

Hi @OlaoluwaM, we use globbing patterns as the format for the --exclude pattern, which is the same format used in the .gitignore file, BTW, onefetch will respect all .gitignore and .ignore files in your repository.

The --exclude option affects two aspects:

  1. The LOC computation -> "Lines of code" info line and the Languages distribution. You can use this option to exclude both files (ex.: onefetch -e **/info/*.rs) and directories (ex.: onefetch -e src/info)
  2. The churn files -> In that case only files can be excluded via the option.

image

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants

AltStyle によって変換されたページ (->オリジナル) /