()
| 20 | ) |
| 21 | |
| 22 | func init() { |
| 23 | if g := os.Getenv("GIT_EDITOR"); g != "" { |
| 24 | defaultEditor = g |
| 25 | } else if v := os.Getenv("VISUAL"); v != "" { |
| 26 | defaultEditor = v |
| 27 | } else if e := os.Getenv("EDITOR"); e != "" { |
| 28 | defaultEditor = e |
| 29 | } else if runtime.GOOS == "windows" { |
| 30 | defaultEditor = "notepad" |
| 31 | } |
| 32 | } |
| 33 | |
| 34 | // EXTENDED to enable different prompting behavior |
| 35 | type GhEditor struct { |
nothing calls this directly
no outgoing calls
no test coverage detected