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

FR: Enhance aliases to run multiple commands with conditional logic #3673

Open
kuchta opened this issue May 12, 2024 · 2 comments
Open

FR: Enhance aliases to run multiple commands with conditional logic #3673

kuchta opened this issue May 12, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@kuchta
Copy link

kuchta commented May 12, 2024

If aliases would be able to run multiple commands with conditional logic, many workflow specific commands (porcelain in git jargon) could be implemented by the user or his/her company.

Many current commands expect some idiomatic workflow which could be implemented as a default aliases if aliases allow for conditional logic and new command eg. is-same-revision <revision> <revision>

This change would externalize such workflow specific commands (and discussions) to user configurable defaults and be potentionaly replaced by user/company preferred workflow...

@PhilipMetzger PhilipMetzger added the enhancement New feature or request label May 16, 2024
@PhilipMetzger
Copy link
Collaborator

This FR is probably a subset of #3262, as it is along the static/dynamic configuration discussion, which has been brought up many times in Discord.

@fowles
Copy link

fowles commented Jun 3, 2024

I actually just ran across this myself. I would very much like an alias that lets me do jj branch set main -r @- && jj git push -b main. Bonus points for allowing it to take the branch name as an argument or to figure it out from the log.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants