gg

Git with less typing

gg gerrithook

gg gerrithook [-url=URL] [ on | off ]

install or uninstall Gerrit change ID hook

The Gerrit change ID hook is a commit message hook which automatically inserts a globally unique Change-Id tag in the footer of a commit message.

gerrithook downloads the hook script from a public Gerrit server. gg caches the last successfully fetched hook script for each URL in $XDG_CACHE_DIR/gg/gerrithook/, so if the server is unavailable, the local file is used. -cached can force using the cached file.

More details at https://gerrit-review.googlesource.com/hooks/commit-msg

Options

-url string
URL of hook script to download
-cached
Use local cache instead of downloading