C# Class GitSharp.Core.PackLock

Keeps track of a PackFile associated .keep file.
Show file Open project: jagregory/GitSharp

Public Methods

Method Description
Lock ( string msg ) : bool

Create the pack-*.keep file, with the given message.

PackLock ( FileInfo packFile ) : System.IO

Create a new lock for a pack file.

Unlock ( ) : void

Remove the .keep file that holds this pack in place.

Method Details

Lock() public method

Create the pack-*.keep file, with the given message.
/// The keep file could not be written. ///
public Lock ( string msg ) : bool
msg string message to store in the file.
return bool

PackLock() public method

Create a new lock for a pack file.
public PackLock ( FileInfo packFile ) : System.IO
packFile System.IO.FileInfo /// Location of the pack-*.pack file. ///
return System.IO

Unlock() public method

Remove the .keep file that holds this pack in place.
public Unlock ( ) : void
return void