Learn R Programming

packager (version 1.8.0)

use_git_pre_commit_script: Use a Script as git pre-commit hook

Description

Provide a pre-commit.d/ in ./git/hooks, a pre-commit hook that executes scripts from that directory and copy the script_file there.

Usage

use_git_pre_commit_script(path, script_file)

Arguments

path

Path to the package directory (see devtools::as.package).

script_file

A path to a script file.

Details

git2r::commit somehow ignores hooks, so this works only for proper git.

See Also

Other infrastructure functions: use_git_check_version_not_tagged()