Make delegate() method public

The delegate() method was initially introduced in I8a862ac852
to allow access to the underlying repository while running GC
for sites using multi-site plugin.

The method was initially package private since the callers
where in the same package.

Changing visibility of delegate() method to public
to allow plugins to access it.

Accessing the wrapped repository would otherwise require hacky
workarounds like this Ia3fbdc7e96.

Bug: Issue 15997
Release-Notes: Make DelegateRepository#delegate() method public
Change-Id: I4c8b4f97f9995a7adeca5b6f763e7913c9e8a5e5
diff --git a/java/com/google/gerrit/server/git/DelegateRepository.java b/java/com/google/gerrit/server/git/DelegateRepository.java
index 96b019d..2c523b2 100644
--- a/java/com/google/gerrit/server/git/DelegateRepository.java
+++ b/java/com/google/gerrit/server/git/DelegateRepository.java
@@ -36,7 +36,8 @@
     this.delegate = delegate;
   }
 
-  Repository delegate() {
+  /** Returns the wrapped {@link Repository} instance. */
+  public Repository delegate() {
     return delegate;
   }