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

"Warning: Cannot define an alias that overrides the built-in command 'revert'" #5701

Open
zx8 opened this issue Feb 14, 2025 · 1 comment
Open

Comments

@zx8
Copy link

zx8 commented Feb 14, 2025

Using 514a009


While the discussion to rename jj backout is still ongoing and no firm decisions have been made, I'm preparing for the outcome that my preferred name of jj revert is not chosen as the replacement.

To that end, I tried to alias jj backout to jj revert, and was unable to:

$ jj revert
Not a real subcommand; consider `jj backout` or `jj restore`

$ jj config set --user aliases.revert '["backout"]'

$ jj status
Warning: Cannot define an alias that overrides the built-in command 'revert'
<snip>
@yuja
Copy link
Contributor

yuja commented Feb 14, 2025

It's kinda the same issue as #5335. jj revert is implemented as a real command, so it can't be overridden by user alias.

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

No branches or pull requests

2 participants