From a86d850688678076a04148fe29ed0ea37ae9da43 Mon Sep 17 00:00:00 2001 From: Damian Krzeminski Date: Fri, 13 Feb 2015 17:51:22 -0500 Subject: [PATCH] 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. --- bin/git-authors | 1 + bin/git-changelog | 1 + 2 files changed, 2 insertions(+) diff --git a/bin/git-authors b/bin/git-authors index 194a64b..0996e3b 100755 --- a/bin/git-authors +++ b/bin/git-authors @@ -2,6 +2,7 @@ LIST=false FILE="" +EDITOR=$(git var GIT_EDITOR) if test "$1" = "-l" || test "$1" = "--list"; then LIST=true diff --git a/bin/git-changelog b/bin/git-changelog index 096d732..7c0cdd9 100755 --- a/bin/git-changelog +++ b/bin/git-changelog @@ -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