Reputation: 2812
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
Upvotes: 4
Views: 1229
Reputation: 316
You need to drag changed files from "Unstaged Changes" window to "Staged Changes" window
Upvotes: 0
Reputation: 1329722
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?"
Upvotes: 4