Check $GIT_EDITOR first
This commit is contained in:
parent
8467c94498
commit
ff2d5fa6d0
1 changed files with 3 additions and 0 deletions
|
|
@ -26,6 +26,9 @@ func init() {
|
|||
if runtime.GOOS == "windows" {
|
||||
editor = "notepad"
|
||||
}
|
||||
if g := os.Getenv("GIT_EDITOR"); g != "" {
|
||||
editor = g
|
||||
}
|
||||
if v := os.Getenv("VISUAL"); v != "" {
|
||||
editor = v
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue