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