Thank you for pointing the direction. It should fit my need. But Gerrit failed to start up as the error shown that it shared the same PermissionBackend with git-refs-filter. Guess I have to find another way.
com.google.gerrit.pgm.Daemon : Unable to start daemon
gerrit_gerrit.1.saodc0epjok7@ubuntu | com.google.inject.CreationException: Unable to create injector, see the following errors:
gerrit_gerrit.1.saodc0epjok7@ubuntu |
gerrit_gerrit.1.saodc0epjok7@ubuntu | 1) [Guice/BindingAlreadySet]: PermissionBackend was bound multiple times.
gerrit_gerrit.1.saodc0epjok7@ubuntu |
gerrit_gerrit.1.saodc0epjok7@ubuntu | Bound at:
gerrit_gerrit.1.saodc0epjok7@ubuntu | 1 : RefsFilterModule.configure(RefsFilterModule.java:38)
gerrit_gerrit.1.saodc0epjok7@ubuntu | 2 : GuiceModule.configure(GuiceModule.java:32)
gerrit_gerrit.1.saodc0epjok7@ubuntu |
gerrit_gerrit.1.saodc0epjok7@ubuntu | Learn more:
gerrit_gerrit.1.saodc0epjok7@ubuntu |
https://github.com/google/guice/wiki/BINDING_ALREADY_SETgerrit_gerrit.1.saodc0epjok7@ubuntu |
gerrit_gerrit.1.saodc0epjok7@ubuntu | 1 error