-
Notifications
You must be signed in to change notification settings - Fork 349
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
Command alias doesn't work in repo-level config #2414
Comments
I have no idea what the problem could be here. @ppwwyyxx, can you think of anything unusual in your setup? What else do you have in your config? Is |
There's a TODO about this. The repository path isn't determined until the command arguments gets parsed. Possible workarounds:
In any case, it's better to show warning if the repository path was different from the one we use for alias expansion. |
… aliases This is basically the same as Mercurial's workaround. I don't know about Git, but arguments order is very restricted in git, so -C path can be parsed prior to alias expansion. In hg and jj, doing that would be messy and unreliable. Closes jj-vcs#2414
… aliases This is basically the same as Mercurial's workaround. I don't know about Git, but arguments order is very restricted in git, so -C path can be parsed prior to alias expansion. In hg and jj, doing that would be messy and unreliable. Closes jj-vcs#2414
… aliases This is basically the same as Mercurial's workaround. I don't know about Git, but arguments order is very restricted in git, so -C path can be parsed prior to alias expansion. In hg and jj, doing that would be messy and unreliable. Closes jj-vcs#2414
## [0.13.0] - 2024-01-03 ### Breaking changes * `jj git fetch` no longer imports new remote branches as local branches. Set `git.auto-local-branch = true` to restore the old behavior. ### New features * Information about new and resolved conflicts is now printed by every command. * `jj branch` has gained a new `rename` subcommand that allows changing a branch name atomically. `jj branch help rename` for details. ### Fixed bugs * Command aliases can now be loaded from repository config relative to the current working directory. [#2414](jj-vcs/jj#2414)
Description
I'm filing this on @ppwwyyxx's behalf. Copying from #982 (comment):
Specifications
The text was updated successfully, but these errors were encountered: