[Updated on: Thu, 17 February 2011 12:52]
Report message to a moderator
Repository db = new FileRepository(gitDir); DirCache cache = db.readDirCache(); DirCacheEntry entry = cache.getEntry(path.toString()); ObjectId blobId = entry.getObjectId(); return db.open(blobId, Constants.OBJ_BLOB).openStream();