use_git_pre_commit_script: Use a Script as git pre-commit hook

View source: R/git_hooks.R

use_git_pre_commit_scriptR Documentation

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()


packager documentation built on Aug. 16, 2023, 5:08 p.m.