use_git_check_version_not_tagged: Check to Not Commit to a Tagged Version

View source: R/git_hooks.R

use_git_check_version_not_taggedR Documentation

Check to Not Commit to a Tagged Version

Description

I sometimes forget to bump the package version of a tagged state in git, then committing git to that version. Nothing severe, but should be avoided. So we add a check (to) a pre-commit hook for git.

Usage

use_git_check_version_not_tagged(path)

Arguments

path

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

Details

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

Value

Invisibly NULL.

See Also

Other infrastructure functions: use_git_pre_commit_script()


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