public interface RefCache
Within a single request that is known to read a small bounded number of refs, this class can be used to ensure a consistent view of one ref, and avoid multiple system calls to read refs multiple times.
Note: Implementations of this class are only appropriate for short-term caching, and do not support invalidation. It is also not threadsafe.
com.google.common.base.Optional<org.eclipse.jgit.lib.ObjectId> get(String refName) throws IOException
refName
- name of the ref.ObjectId.zeroId()
.IOException