Skip to content

Conversation

friel-openai
Copy link

Add plumbing for computed filters

Introduce a ComputedFilter hook on transactions so a :computed filter can be resolved per commit, cached, and have its metadata recorded for reverse lookups. Teach the history helpers to consult that metadata when finding original commits or unapplied filters, returning clear errors when the resolver or its records are missing.

Extend the parser and pretty-printer to understand :computed (with optional arguments), and cover the resolver lifecycle, caching, and failure modes with new tests that rely on a tempfile-backed repository.

Add plumbing for computed filters

Introduce a ComputedFilter hook on transactions so a `:computed` filter can be
resolved per commit, cached, and have its metadata recorded for reverse lookups.
Teach the history helpers to consult that metadata when finding original commits
or unapplied filters, returning clear errors when the resolver or its records
are missing.

Extend the parser and pretty-printer to understand `:computed` (with optional
arguments), and cover the resolver lifecycle, caching, and failure modes with
new tests that rely on a tempfile-backed repository.
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