Unlike usethis::use_git_hook()
, this function checks to see if you already
have a pre-commit hook, and attempts to add to it while avoiding duplication.
The checks are imperfect, which is probably why this isn't in usethis this
way. It will also fail if something exits early on success before everything
has ran.