svn_repos_hooks_setenv

Function svn_repos_hooks_setenv 

Source
pub unsafe extern "C" fn svn_repos_hooks_setenv(
    repos: *mut svn_repos_t,
    hooks_env_path: *const c_char,
    scratch_pool: *mut apr_pool_t,
) -> *mut svn_error_t
Expand description

Specify that Subversion should consult the configuration file located at @a hooks_env_path to determine how to setup the environment for hook scripts invoked for the repository @a repos. As a special case, if @a hooks_env_path is @c NULL, look for the file in its default location within the repository disk structure. If @a hooks_env_path is not absolute, it specifies a path relative to the parent of the file’s default location.

Use @a scratch_pool for temporary allocations.

If this function is not called, or if the specified configuration file does not define any environment variables, hooks will run in an empty environment.

@since New in 1.8.