用于emacs的egg git接口,提交消息为空 [英] egg git interface for emacs, commit message empty
问题描述
每当我尝试实现一个commit --amend时,我收到一个
GIT-COMMIT-AMEND>由于空提交消息而中止提交。
这是我做的:
Cu Cx vc
然后出现提交缓冲区,并显示我之前提交的消息。
然后在 Cc Cc
我收到上述消息:空提交消息。
我想我'已经有这样的行为与常规提交(如未修改),但不记得或找到我如何解决它。
我尝试编辑消息(添加一个空间在某处)。没有工作。
我在提交之前尝试保存缓冲区,这不会奏效(因为 Cc Cc
任何线索?
问题解决了,虽然我不太明白。
我不得不改变一些鸡蛋的选择。在某些情况下,似乎没有找到 git.exe
的字符串。
我做了什么:
Mx customize-group< RET>鸡蛋< RET>
然后将 Egg git命令
更改为 git.exe
包括其完整路径工作。
这是有点奇怪,因为: / p>
- egg可以使用git生成状态缓冲区
- git的路径在我的路径envvar
- 信息中止提交...来自git,我相信。
在学习如何调试elisp之后,我发现标记应该显示提交消息的限制在函数 egg-log- msg-commit
。
在其他地方,这些标记包含提交消息的字符索引,但不存在。
I'm using egg (emacs got git) as git interface in emacs.
Whenever I try to achieve a commit --amend, I receive a "GIT-COMMIT-AMEND> Aborting commit due to empty commit message".
This is what i do:
C-u C-x v c
Then the commit buffer appears, with the message of my previous commit.
Then upon C-c C-c
I get the message stated above: empty commit message.
I think I've had this behaviour with regular commits (as in not amend) before, but can't remember or find how I solved it.
I tried editing the message (adding a space somewhere). No work.
I tried saving the buffer before committing, that wouldn't work either (since C-c C-c
is not active in another buffer than the commit buffer).
Any clue?
Problem solved, although I do not quite understand.
I had to change some options for egg. It didn't seem to have the correct string to find git.exe
in some cases.
What I did:
M-x customize-group <RET> egg <RET>
then changing Egg git command
to git.exe
including its full path worked.
This is a bit strange since:
- egg could use git to generate the status buffer
- the path to git is in my path envvar
- the message "Aborting commit..." comes from git, I believe.
After learning how to debug elisp, I found that the markers supposed to show the limits of the commit message were both nil
in the function egg-log-msg-commit
.
At other places, these markers hold the character indexes for the commit message, but not there.
这篇关于用于emacs的egg git接口,提交消息为空的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!