Skip to content

pr-908/albertcui/hooks-v4

From: Albert Cui <albertqcui@gmail.com>

Hooks today are configured at the repository level, making it difficult to
share hooks across repositories. Configuration-based hook management, by
moving hooks configuration to the config, makes this much easier. However,
there is still no good way for project maintainers to encourage or enforce
adoption of specific hook commands on specific hook events in a repository.
As such, there are many tools that provide this functionality on top of Git.

This patch documents the requirements we propose for this feature as well as
a design sketch for implementation.

Signed-off-by: Albert Cui <albertqcui@gmail.com>
Helped-by: Emily Shaffer <emilyshaffer@google.com>
Helped-by: Jonathan Nieder <jrnieder@gmail.com>

Submitted-As: https://lore.kernel.org/git/pull.908.v4.git.1620241892929.gitgitgadget@gmail.com
In-Reply-To: https://lore.kernel.org/git/pull.908.git.1616105016055.gitgitgadget@gmail.com
In-Reply-To: https://lore.kernel.org/git/pull.908.v2.git.1616723016659.gitgitgadget@gmail.com
In-Reply-To: https://lore.kernel.org/git/pull.908.v3.git.1619228290023.gitgitgadget@gmail.com
Assets 2