Just for the record:
For the Eclipse EGerrit plugin to work one must:
- Install the git commit hook as described here
- Click on "Add Change-id" button in Eclipse as pictured
EGerrit "Add Change-id" button location
This will generate an empty change id full of zeroes, which will be replaced automatically with the actual change id after you commit.
- If you want gerrit to insert it automatically make sure the file
[your_project]/.git/config
contains
[gerrit]
createchangeid = true
(The createchangeid = true
line should be indented with a tab
- If you forgot to add the change id and already committed you can amend your last commit (by clicking the corresponding button: second to the left from the change id button) and then hit the change id button. To add change ids to several commits see the first SO link.