Prefer Git’s core.editor over the EDITOR environment variable if both are set
This MR is to support the following scenarios when BugIt attempts to open an editor:
Scenario 1. User has core.editor configured in Git
In this case, BuGit now uses Git’s core.editor
setting.
Scenario 2. Environments where EDITOR is unset
In this case, BuGit selects vi
, which is similar to what Git does.
It is not uncommon for users to have EDITOR
unset, e. g. on OS X.
Scenario 3. Both EDITOR and Git core.editor are defined
In that case, the Git core.editor
takes preference over EDITOR
, the rationale being BuGit’s close coupling to Git.