use_git_hook

0th

Percentile

Add a git hook.

Add a git hook.

Keywords
internal
Usage
use_git_hook(hook, script, pkg = ".")
Arguments
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 as.package for more information.

See Also

Other git infrastructure: use_github_links, use_github, use_git

Aliases
  • use_git_hook
Documentation reproduced from package devtools, version 1.13.5, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.