Skip to content

Conversation

@Byron
Copy link
Member

@Byron Byron commented Apr 19, 2023

Make attribute access possible with the attribute cache.

Tasks

  • fix case-sensitivity handling for excludes (and validate for path/ excludes)
  • basic attributes access with baseline tests
  • basic attributes with selection

@Byron Byron force-pushed the attributes-cache branch 3 times, most recently from a252ed8 to 9ce5fb0 Compare April 20, 2023 06:43
Byron added 5 commits April 24, 2023 15:22
This version works without a `search::pattern::List`.
It's useful to have to avoid certain conversions to happen otherwise.
…ly to git.

Previously directory excludes like `dir/` could (possibly) yield different results compared to git.
This is an opportunitstic change as it wasn't possible to trigger the wanted behaviour in a test
related to directory-specific matching. It did trigger, however, when matching normal patterns
which indicated there was indeed a bug.
Also, improve method documentation.
Otherwise it's not possible to keep allocations for matches,
while also adjusting pattern lists due to stack changes.

On the bright side, this adds some more deduplication to the implementation,
at the cost of dealing with some hashmaps that are updated when matching.
@Byron Byron force-pushed the attributes-cache branch from 9ce5fb0 to 0722c29 Compare April 24, 2023 18:19
@Byron Byron force-pushed the attributes-cache branch from 0722c29 to 13a070f Compare April 24, 2023 19:07
@Byron Byron merged commit 3456c84 into main Apr 24, 2023
@Byron Byron deleted the attributes-cache branch April 24, 2023 19:43
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.

2 participants