Skip to content

Instantly share code, notes, and snippets.

@ds82
Created June 24, 2015 08:54
Show Gist options
  • Save ds82/471cad3d8de3c2511cfb to your computer and use it in GitHub Desktop.
Save ds82/471cad3d8de3c2511cfb to your computer and use it in GitHub Desktop.
gerrit change-id hinzufügen (OSX/zsh)
tmp=$(mktemp /tmp/commit-msg.XXXX)
hook=$(stat -f $(git rev-parse --git-dir))/hooks/commit-msg
git filter-branch -f --msg-filter "cat > $tmp; \"$hook\" $tmp; cat $tmp" START..END
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment