use_git_hook {devtools} | R Documentation |
Add a git hook.
use_git_hook(hook, script, pkg = ".")
hook |
Hook name. One of "pre-commit", "prepare-commit-msg", "commit-msg", "post-commit", "applypatch-msg", "pre-applypatch", "post-applypatch", "pre-rebase", "post-rewrite", "post-checkout", "post-merge", "pre-push", "pre-auto-gc". |
script |
Text of script to run |
pkg |
Path to package. See |
Other git infrastructure: use_github_links
,
use_github
, use_git