git-branchless
git-branchless copied to clipboard
Support shell commands in revset aliases
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)"
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!