From: Oleg Broytman Date: Thu, 4 Aug 2016 23:44:29 +0000 (+0300) Subject: Use `git var GIT_EDITOR` to call editor X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;ds=sidebyside;h=472be778aa9f5725f3a7757baa5c791b32182f2c;hp=472be778aa9f5725f3a7757baa5c791b32182f2c;p=git-scripts.git Use `git var GIT_EDITOR` to call editor `git var GIT_EDITOR` is better than ${VISUAL:-${EDITOR:-vi}} because it takes into account all variables: GIT_EDITOR, VISUAL and EDITOR, and falls back to the platform's default. ---