Package com.google.gerrit.server.notedb
Class NoteDbUpdateManager.OpenRepo
- java.lang.Object
-
- com.google.gerrit.server.notedb.NoteDbUpdateManager.OpenRepo
-
- All Implemented Interfaces:
AutoCloseable
- Enclosing class:
- NoteDbUpdateManager
public static class NoteDbUpdateManager.OpenRepo extends Object implements AutoCloseable
-
-
Field Summary
Fields Modifier and Type Field Description ChainedReceiveCommands
cmds
org.eclipse.jgit.lib.Repository
repo
org.eclipse.jgit.revwalk.RevWalk
rw
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Optional<org.eclipse.jgit.lib.ObjectId>
getObjectId(String refName)
-
-
-
Field Detail
-
repo
public final org.eclipse.jgit.lib.Repository repo
-
rw
public final org.eclipse.jgit.revwalk.RevWalk rw
-
cmds
public final ChainedReceiveCommands cmds
-
-
Method Detail
-
getObjectId
public Optional<org.eclipse.jgit.lib.ObjectId> getObjectId(String refName) throws IOException
- Throws:
IOException
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
-
-