Presently ggo-options include straight git command calls, like git commit -a. If there weren't a ggo checkout-branch already, there's be no way to add one that uses fzf to choose the branch to checkout. It may be possible to devise a system wherein an option could be in the vein of
ggo custom-branch "git checkout"
where custom-branch will pass the branch into the command passed to it. It may require placeholders to parse. This API may actually improve and simplify the existing code.
Presently ggo-options include straight git command calls, like
git commit -a. If there weren't aggo checkout-branchalready, there's be no way to add one that uses fzf to choose the branch to checkout. It may be possible to devise a system wherein an option could be in the vein ofwhere
custom-branchwill pass the branch into the command passed to it. It may require placeholders to parse. This API may actually improve and simplify the existing code.