Skip to content

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