git-up
git-up copied to clipboard
Hooks
Lots of requested git-up features would be covered by a generic, language-agnostic hook system, e.g.
git config --global git-up.hooks.run.before "echo 'I run before git-up does anything'"
git config --global git-up.hooks.switch.after "echo 'I run after git-up has switched branches'"
git config --global git-up.hooks.rebase.after "echo 'I run after git-up has rebased a branch'"
and so on. Relevant arguments, (such as which branch was switched to, relevant commit hashes in the case of rebase etc) should be passed in as arguments (so they're available as $1, $2 etc).
This issue is a placeholder for fleshing out a spec for them, and referring people who request features.
Sadly, I don't have a lot of time to implement this, but if you agree that it'd be cool, either show your support here or take a crack yourself.