Package com.google.gerrit.server.git
Class HookUtil
- java.lang.Object
- 
- com.google.gerrit.server.git.HookUtil
 
- 
 public class HookUtil extends Object Static utilities for writing git protocol hooks.
- 
- 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static Map<String,org.eclipse.jgit.lib.Ref>ensureAllRefsAdvertised(org.eclipse.jgit.transport.ReceivePack rp)Scan and advertise all refs in the repo if refs have not already been advertised; otherwise, just return the advertised map.static Map<String,org.eclipse.jgit.lib.Ref>ensureAllRefsAdvertised(org.eclipse.jgit.transport.UploadPack up)Scan and advertise all refs in the repo if refs have not already been advertised; otherwise, just return the advertised map.
 
- 
- 
- 
Method Detail- 
ensureAllRefsAdvertisedpublic static Map<String,org.eclipse.jgit.lib.Ref> ensureAllRefsAdvertised(org.eclipse.jgit.transport.ReceivePack rp) throws org.eclipse.jgit.transport.ServiceMayNotContinueException Scan and advertise all refs in the repo if refs have not already been advertised; otherwise, just return the advertised map.- Parameters:
- rp- receive-pack handler.
- Returns:
- map of refs that were advertised.
- Throws:
- org.eclipse.jgit.transport.ServiceMayNotContinueException- if a problem occurred.
 
 - 
ensureAllRefsAdvertisedpublic static Map<String,org.eclipse.jgit.lib.Ref> ensureAllRefsAdvertised(org.eclipse.jgit.transport.UploadPack up) throws org.eclipse.jgit.transport.ServiceMayNotContinueException Scan and advertise all refs in the repo if refs have not already been advertised; otherwise, just return the advertised map.- Parameters:
- up- upload-pack handler.
- Returns:
- map of refs that were advertised.
- Throws:
- org.eclipse.jgit.transport.ServiceMayNotContinueException- if a problem occurred.
 
 
- 
 
-