use standard git editor in git-authors & git-changelog

The editor used 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).

That ensures that `git-changelog` and `git-authors` will use the same editor
as `git-commit`, `git-merge` etc.
This commit is contained in:
Damian Krzeminski 2015-02-13 17:51:22 -05:00
parent 8750491323
commit a86d850688
2 changed files with 2 additions and 0 deletions

View file

@ -2,6 +2,7 @@
LIST=false
FILE=""
EDITOR=$(git var GIT_EDITOR)
if test "$1" = "-l" || test "$1" = "--list"; then
LIST=true

View file

@ -4,6 +4,7 @@ FILE=""
LIST=false
TAG="n.n.n"
GIT_LOG_OPTS=""
EDITOR=$(git var GIT_EDITOR)
while [ "$1" != "" ]; do
case $1 in