Learn R Programming

packager (version 1.9.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

This might work only for proper git, not for packages like gert or git2r.

See Also

Other infrastructure functions: use_git_check_version_not_tagged()