Skip to content

fix(commitpkg): prefer core.editor over $EDITOR and $VISUAL

Christian Heusel requested to merge gromit/devtools:192-git-core-editor into master

This is done to closer mimick the behaviour of git here, as it prefers core.editor setting over the other editor options as per git-var(1):

The order of preference is the $GIT_EDITOR environment variable, then core.editor configuration, then $VISUAL, then $EDITOR, and then the default chosen at compile time, which is usually vi.

Fixes #192 (closed)

Closes #192 (closed)

cc @fabiscafe

Edited by Christian Heusel

Merge request reports