git flow only allows one hotfix branch at any one time. So rather than typing:
git flow hotfix finish hotfix_branch
I’dl like to create an alias that uses the only existing hotfix branch name. Something like the following pseudocode:
[alias]
fix-done = flow hotfix finish `git_fetch_branch_beginning_with_hotfix`
Can anyone help? Thanks.
Update: I’m using zsh.
This function is more or less extracted from git-flow‘s source code:
Update
It seems like you have to put the entire function in your alias. Not nice, but works: