The new index will be locked and then read before it is returned to the caller. Read failures are reported as exceptions and therefore prevent the method from returning a partially populated index. @return a cache representing the contents of the specified index file (ifit exists) or an empty cache if the file does not exist. @throws NoWorkTreeException if this is bare, which implies it has no working directory. See {@link #isBare()}. @throws IOException the index file is present but could not be read, or the lock could not be obtained. @throws CorruptObjectException the index file is using a format or extension that this library does not support.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|