ChangedFiles: Pass in RevWalk from which the revision should be loaded

If a revision is newly inserted, but not committed to the repository
yet, it can only be seen from the RevWalk instance that created it, but
not by newly instantiated RevWalks. To support loading changed files
from newly inserted revisions that have not been committed yet, we now
allow to pass in a RevWalk instance that should be used to load it.

In addition we allow to pass in the repository config, since callers
that will need to pass in the RevWalk (CodeOwnerConfigValidator) will
have the repository config already available, and hence we will not need
to reopen the repository just to read the repository config.

Signed-off-by: Edwin Kempin <ekempin@google.com>
Change-Id: If80c7fcd48219b7217de5d517fcd817cf974e999
1 file changed
tree: 2b9c82414e8eda388400041e3c4c7c88e8f9ce52
  1. java/
  2. javatests/
  3. proto/
  4. resources/
  5. test/
  6. ui/
  7. .eslintrc.json
  8. .gitignore
  9. .gitreview
  10. bower.json
  11. BUILD
  12. LICENSE
  13. package-lock.json
  14. package.json
  15. README.md
README.md

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/about.md

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