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

Closed
zx8 opened this issue Feb 14, 2025 · 1 comment · Fixed by #5879
Closed

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

zx8 opened this issue Feb 14, 2025 · 1 comment · Fixed by #5879

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.

yuja added a commit to yuja/jj that referenced this issue Mar 5, 2025
We might rename "jj backout" to "jj revert", but until then, user can add alias
as they want.

Closes jj-vcs#5335
Closes jj-vcs#5701
github-merge-queue bot pushed a commit that referenced this issue Mar 5, 2025
We might rename "jj backout" to "jj revert", but until then, user can add alias
as they want.

Closes #5335
Closes #5701
@yuja yuja closed this as completed in #5879 Mar 5, 2025
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 a pull request may close this issue.

2 participants