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

attributes for worktree-cache #818

Merged
merged 7 commits into from
Apr 24, 2023
Merged

attributes for worktree-cache #818

merged 7 commits into from
Apr 24, 2023

Conversation

Byron
Copy link
Owner

@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
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 merged commit 3456c84 into main Apr 24, 2023
16 checks passed
@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.

None yet

1 participant