commit | 969d9b7b8ce04b37f7e3ba204bcfa40ca91b69be | [log] [tgz] |
---|---|---|
author | Edwin Kempin <ekempin@google.com> | Wed Oct 07 09:21:07 2020 +0200 |
committer | Edwin Kempin <ekempin@google.com> | Wed Oct 07 09:22:13 2020 +0200 |
tree | 2b9c82414e8eda388400041e3c4c7c88e8f9ce52 | |
parent | 681780247338b5cb8e4abf14e7ce64a85556d304 [diff] |
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
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