mirror of
https://github.com/tj/git-extras.git
synced 2026-09-10 07:26:17 -04:00
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:
parent
8750491323
commit
a86d850688
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
LIST=false
|
||||
FILE=""
|
||||
EDITOR=$(git var GIT_EDITOR)
|
||||
|
||||
if test "$1" = "-l" || test "$1" = "--list"; then
|
||||
LIST=true
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue