The cache environment variable is now named GITCREDS_PAT_<HOST> instead of
GITHUB_PAT_<HOST>, which was misleading for hosts that are not GitHub
(#56, @melissavanbussel). The old names are still read, with a warning once
per session; set GITCREDS_LEGACY_WARN=false to silence it. GITHUB_PAT
and GITHUB_TOKEN are unaffected.
If you vendor git-auth.R, re-vendor it: an older copy computes the old
name, so its cache no longer shares a slot with this one.
Cached credentials can now also be supplied in a GITCREDS_PAT_*
environment variable, alongside the GITHUB_PAT_* name that gitcreds still
writes and returns from gitcreds_cache_envvar(). Removing a credential
clears both names (#56).
The gitcreds_no_credentials error now names the URL and the environment
variable that would supply a credential for it, instead of only saying
"Could not find any credentials" (#56).
gitcreds now works with older git versions on Windows. It should work
without any configuration for git 2.12.1 or later, and with minimal
configuration for git 2.9.2 - git 2.12.0. See ?gitcreds_get for more.
git errors have now better error messages, they include the output from git as well.
The git-auth.R file is now standalone, and can be embedded into
other packages.
First public release.