Skip to content

filter refs by spec #526

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

Merged
merged 23 commits into from
Sep 11, 2022
Merged

filter refs by spec #526

merged 23 commits into from
Sep 11, 2022

Conversation

Byron
Copy link
Member

@Byron Byron commented Sep 5, 2022

Tasks

  • refactor: git-sec remove tag from Access, make a check that only returns on Option, ignoring Deny.
  • quick-error replaced with thiserror where it made a difference

Next

  • filter remote refs by ref-spec and provide information on which local refs would be updated

Predecessor

Byron added 23 commits September 5, 2022 19:12
Many of the error definitions changed from tuple types to structs.
Some errors change shape which makes this a breaking change.
Turns out backslashes are escaped, which can make it into the error
and look strange there.
It's a clear case of over-engineering and it didn't prove to be useful
at all.
It's now included by default even though it's only used for a single
error type.
The reasoning is that `git-sec` is used within a tree that uses
`thiserror` anyway, so no need to optimize compile times for the case
where it doesn't.
As this error is only used for `Permission`, it's clear that it
contains a `Permission` instance.
…ncy. (#450)

This also removes the need for the `Permission` field as it's clear
that only `Forbid` variants can produce it.
It was somewhat specific to being printed in the error scenario, and
not general purpose at all.
@Byron Byron merged commit e10554d into main Sep 11, 2022
@Byron Byron deleted the filter-refs branch September 11, 2022 02:43
This was referenced Sep 12, 2022
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