Learn R Programming

devtools (version 1.13.3)

use_git_hook: Add a git hook.

Description

Add a git hook.

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