@Nonnull public DirCacheEntry getEntry() { if(entry == null) throw new NoSuchCacheEntryException(path); return entry; }
@Nonnull public DirCacheEntry getEntry() { if(entry == null) throw new NoSuchCacheEntryException(path); return entry; }
@Nonnull public DirCacheEntry getEntry() { if(entry == null) throw new NoSuchCacheEntryException(path); return entry; }
@Nonnull private static DirCacheEntry ensureEntry(String path, DirCache cache) { DirCacheEntry entry = getEntry(path, cache); if(entry == null) throw new NoSuchCacheEntryException("/" + normalizeNodePath(path)); return entry; }
@Nonnull private static DirCacheEntry ensureEntry(String path, DirCache cache) { DirCacheEntry entry = getEntry(path, cache); if(entry == null) throw new NoSuchCacheEntryException("/" + normalizeNodePath(path)); return entry; }
@Nonnull public static AnyObjectId getBlobId(@Nonnull String path, @Nonnull DirCache cache) throws NoSuchCacheEntryException { DirCacheEntry entry = getEntry(path, cache); if(entry == null) throw new NoSuchCacheEntryException("/" + TreeUtils.normalizeTreePath(path)); return entry.getObjectId(); }
@Nonnull public static FileMode getFileMode(@Nonnull String path, @Nonnull DirCache cache) throws NoSuchCacheEntryException { DirCacheEntry entry = getEntry(path, cache); if(entry == null) throw new NoSuchCacheEntryException("/" + TreeUtils.normalizeTreePath(path)); return entry.getFileMode(); }