Here's a sample of the manpage for `git-commit`:

> The editor used to edit the commit log message will be chosen from the GIT_EDITOR environment variable, the core.editor configuration variable, the VISUAL environment variable, or the EDITOR environment variable (in that order). See git-var(1) for details.

Can we replicate that series of fallbacks?