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

feat: optional file pattern to prevent indexing certain files #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

FPa-riken
Copy link

@FPa-riken FPa-riken commented Nov 18, 2022

Feature proposal: Add an optional file pattern to prevent indexing certain files, by checking their path.

It can solve #1, and similar situation in a generic way: It allows preventing to pollute the blob index with some technical text file (such as DataLad internal files) that have no added values for data text search.

Usage: like other configuration parameters, the pattern is set via an environment variable (exclude_from_index), and it uses glob syntax.
e.g. to prevent indexing SVGs and DataLad's internal files set the variable to :

exclude_from_index={**.svg,**.gitattributes,.datalad**}

Like other configuration params, the pattern is set via an environment variable (`exclude_from_index`) and uses glob syntax :

e.g. exclude_from_index=**.svg,**.gitmodules,**.gitattribute,.datalad**}
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

Successfully merging this pull request may close these issues.

1 participant