| git_hooks_install | R Documentation |
Creates a pre-commit hook that runs Framework checks based on settings.yml settings.
git_hooks_install(config_file = NULL, force = FALSE, verbose = TRUE)
config_file |
Path to configuration file (default: "settings.yml") |
force |
Logical; if TRUE, overwrite existing hook (default: FALSE) |
verbose |
Logical; if TRUE (default), show installation messages |
Creates or updates .git/hooks/pre-commit to run enabled Framework hooks:
ai_sync: Sync AI assistant context files before commit
data_security: Run security audit to catch data leaks
check_sensitive_dirs: Warn about unignored sensitive directories
Hook behavior is controlled by git.hooks.* settings in settings.yml.
Invisible TRUE on success, FALSE on failure
if (FALSE) {
# Install hooks based on settings.yml
git_hooks_install()
# Force reinstall (overwrites existing hook)
git_hooks_install(force = TRUE)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.