-
Notifications
You must be signed in to change notification settings - Fork 406
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
FR: Make the mine()
revset builtin
#1976
Comments
mine()
builtinmine()
revset builtin
I'm not sure how to get access to the overall jj config to get the author that's configured, as far as I can tell, there's not a way to currently get there from any of the arguments to RevsetFunction, but I could be missing something. |
|
We don't want dependencies from the lib crate to the CLI crate. See https://github.com/martinvonz/jj/blob/main/docs/technical/architecture.md#separation-of-library-from-ui. I think we can instead pass in the current username into the |
|
LGTM, thanks for implementing it. |
At the moment all users need to setup the revset alias by themselves, this is trivial but it should be builtin.
The alias looks like this:
The implementation should look something like this:
Then you need to add it to the builtins function map, without expecting arguments
https://github.com/martinvonz/jj/blob/85b66e43f06bd58045d991d047bd7c142fb09622/lib/src/revset.rs#L932-L946
Then you only need to add tests to finish your first contribution, don't forget to sign the CLA.
The text was updated successfully, but these errors were encountered: