Skip to content

proto: Add `SetCustomHooks` and `GetCustomHooks` RPCs

Justin Tobler requested to merge jt-hooks-rpc into master

Currently the RestoreCustomHooks RPC is used to set the custom git hooks for a repository from a backup. In the future this RPC will be used more generally to write hooks to a specified repository. To accommodate this, this change implements a new RPC SetCustomHooks which performs the exact same operation but which a more general name.


Also...

Currently the BackupCustomHooks RPC is used during backups to fetch the custom git hooks within a repository and returns them as a tarball. In the future, this RPC will be used more generally to retrieve custom hooks from a specified repository. This change implements the GetCustomHooks RPC which performs the same operations but has a more general name for semantic purposes.

Edited by Justin Tobler

Merge request reports