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

Support shell commands in revset aliases #1335

Open
mfulbright opened this issue Jun 2, 2024 · 1 comment
Open

Support shell commands in revset aliases #1335

mfulbright opened this issue Jun 2, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@mfulbright
Copy link

In a typical git alias section, aliases can execute either a git command or a shell command:

[alias]
  # Git command
  pushForce = push --force-with-lease
  # Shell command
  fetchRebase = "!git fetch origin master && git rebase origin/master && git update-ref refs/heads/master origin/master"

It would be great to be able to do the same with revset aliases:

[branchless "revsets.alias"]
  # Git branchless command
  grandChildren = children(children($1))
  # Shell command
  pushed = "!are_commits_pushed($1)"
@mfulbright
Copy link
Author

I would love to add the 'enhancement' label to this, but I don't see a way to do that. I hope someone else can help with that!

@claytonrcarter claytonrcarter added the enhancement New feature or request label Jun 8, 2024
@arxanas arxanas changed the title [Feature request] Support shell commands in revset aliases Support shell commands in revset aliases Oct 10, 2024
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

2 participants