Constructor and Description |
---|
PackLock(File packFile,
FS fs)
Create a new lock for a pack file.
|
public boolean lock(String msg) throws IOException
pack-*.keep
file, with the given message.msg
- message to store in the file.IOException
- the keep file could not be written.public void unlock() throws IOException
.keep
file that holds this pack in place.IOException
- if deletion of .keep file failedCopyright © 2016 Eclipse JGit Project. All rights reserved.