Class PackLock
java.lang.Object
org.eclipse.jgit.internal.storage.file.PackLock
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
keepFile
-
-
Constructor Details
-
PackLock
-
-
Method Details
-
lock
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
Remove the.keepfile that holds this pack in place.- Throws:
IOException- if deletion of .keep file failed
-