extract_diff_root: Extract old and new lines from git diff –cached

View source: R/roxygen2.R

extract_diff_rootR Documentation

Extract old and new lines from git diff --cached

Description

This is useful to detect within a hook script if the core function from a hook such as roxygen2::roxygenize() must run at all or not.

Usage

extract_diff_root(root = here::here())

Arguments

root

The root of project.


precommit documentation built on July 2, 2022, 1:06 a.m.