提交后呢? [英] Egit staged after commit?

查看:116
本文介绍了提交后呢?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



但是有一个问题。



我提交了一个文件(完美的工作),但是在提交之后,文件被再次执行提交
和git status文件列出要提交的更改:
但没有任何更改git diff没有输出。



什么事情?



在命令行中提交似乎按照预期工作。这是一般的egit问题吗?



greetings

解决方案

看起来像 错误307560


基本上,似乎有一种情况是,EGit或JGit会立即改变文件的文件模式,即时提交或提交后,然后文件在项目中被标记为脏。

奇怪的是,EGit拾取文件模式更改足以将文件标记为脏,但不足以允许您检入新的文件模式更改(您是否想要) - 即使使用脏文件标记,尝试提交告诉你没有更改的项目被选中。你想要
修改最后一个提交吗?



I'm using egit for eclipse since today

but there is a problem.

I commited a file(works perfectly), but after the commit the file is staged to commit again? and with "git status" the file is listed "Changes to be committed:" But without any changes "git diff" has no output.

What's the matter?

commiting in command line seems to work as intended. Is it a general egit problem ?

greetings

解决方案

Looks like bug 307560

Basically, there appears to be a situation where EGit or JGit change the file mode of a file, either immediately pre- or post- commit, and then the file gets marked as dirty in the project.
Weirdly, EGit picks up the file mode change enough to mark the file as dirty, but not enough to allow you to check in the new file mode change (were you to want to) -- even with the dirty file marker, attempting to commit tells you "No changed items were selected. Do you wish to amend the last commit?"

这篇关于提交后呢?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆