Docs for EditCommand.

This commit is contained in:
caojoshua 2021-05-31 23:23:33 -07:00 committed by Jesse Duffield
parent 60468d2e17
commit e7c657fba0
2 changed files with 19 additions and 1 deletions

View file

@ -339,7 +339,7 @@ func (c *GitCommand) EditFileCmdStr(filename string) (string, error) {
}
}
if editor == "" {
return "", errors.New("No editor defined in $GIT_EDITOR, $VISUAL, $EDITOR, or git config")
return "", errors.New("No editor defined in config file, $GIT_EDITOR, $VISUAL, $EDITOR, or git config")
}
return fmt.Sprintf("%s %s", editor, c.OSCommand.Quote(filename)), nil