Class PackLock
- java.lang.Object
-
- org.eclipse.jgit.internal.storage.file.PackLock
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanlock(String msg)Create thepack-*.keepfile, with the given message.voidunlock()Remove the.keepfile that holds this pack in place.
-
-
-
Method Detail
-
lock
public boolean lock(String msg) throws IOException
Create thepack-*.keepfile, with the given message.- Parameters:
msg- message to store in the file.- Returns:
- true if the keep file was successfully written; false otherwise.
- Throws:
IOException- the keep file could not be written.
-
unlock
public void unlock() throws IOExceptionRemove the.keepfile that holds this pack in place.- Throws:
IOException- if deletion of .keep file failed
-
-