| git_hooks_enable | R Documentation |
Enables a specific hook in settings and reinstalls the pre-commit hook.
git_hooks_enable(hook_name, config_file = NULL, verbose = TRUE)
hook_name |
Name of hook: "ai_sync", "data_security", or "check_sensitive_dirs" |
config_file |
Path to configuration file (default: auto-discover settings.yml or settings.yml) |
verbose |
Logical; if TRUE (default), show messages |
Invisible TRUE on success
if (FALSE) {
git_hooks_enable("ai_sync")
git_hooks_enable("data_security")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.