Opened 7 years ago

Last modified 6 years ago

#9792 new enhancement

Add an Option for excludes/ignores

Reported by: ejucovy Owned by: ejucovy
Priority: high Component: MultiRepoSearchPlugin
Severity: major Keywords:
Cc: Trac Release: 0.12


The RepoSearchPlugin has an Option for configuring paths to exclude from searches. Currently MultiRepoSearchPlugin does not have a comparable option.

It should! This is essential for my needs, because I have a large number of repos with mostly-identical, very-boring, and extremely crowded /static/ subdirectories. These dramatically slow down reindexing (and clutter the database) unnecessarily.

The option should probably take a comma-separated list of shell-style wildcards ( or regexen to ignore.

(Ideally the implementation would be smart enough to skip subdirectories wholesale if possible rather than matching each file against the "ignores" list -- so if I have an ignore of "static/*" it should just bail out when it reaches "static/" rather than recursively walking the static/ subtree. This seems hard though since it would have to parse the ignore globs and specialcase some patterns -- it would not be allowed to bail out if the ignore is "static/*.txt" for example.)

Attachments (0)

Change History (1)

comment:1 Changed 6 years ago by ejucovy

Severity: normalmajor

Modify Ticket

Change Properties
Set your email in Preferences
as new The owner will remain ejucovy.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.