dalec
dalec copied to clipboard
source: context: Optimize fetch by path
This makes sure that if a path is specified on a context source that we we only ever fetch the content from beneath that path.
Before this change we were doing the context path filtering after the content was fetched.
This also makes so that include/exclude patterns are automatically namespaced by the source path, since it doesn't make sense to include files that are outside of the source path.