RenameEmail: Preserve files which are not updated

The RenameEmail REST endpoint allows to update emails in code owner
config files. The commit that was created when this REST endpoint was
invoked only contained the modified code owner config files and all
other files, non code owner config files and code owner config files
that didn't contain the email, were deleted. This was because we created
a new tree that we populated with the modifications instead of using the
existing tree as the base.

This being broken means that this REST endpoint hasn't been used so far.

Bug: Issue 16781
Signed-off-by: Edwin Kempin <>
Change-Id: Id396ff9c7dacc210d761baee855d3b2c51f64bac
Signed-off-by: Edwin Kempin <>
2 files changed
tree: 425310472dffca06d34dbd8d9da656761e5081b6
  1. java/
  2. javatests/
  3. proto/
  4. resources/
  5. test/
  6. ui/
  7. .eslintrc.json
  8. .gitignore
  9. .gitreview
  10. bower.json
  11. BUILD
  13. package-lock.json
  14. package.json

Gerrit Code Review code-owners plugin

This plugin provides support for defining code owners for files in a repository.

If the code-owners plugin is enabled, changes can only be submitted if all touched files are covered by approvals from code owners.

Also see resources/Documentation/

IMPORTANT: Before installing/enabling the plugin follow the instructions from the setup guide, see resources/Documentation/