HISTORY_LOCK_MANAGER(const wxString &aProjectPath, int aStaleTimeoutSec=0)
Construct a lock manager and attempt to acquire locks.
git_repository * GetRepository()
Get the git repository handle (only valid if IsLocked() returns true).
git_index * GetIndex()
Get the git index handle (only valid if IsLocked() returns true).
HISTORY_LOCK_MANAGER(const HISTORY_LOCK_MANAGER &)=delete
std::unique_ptr< LOCKFILE > m_fileLock
HISTORY_LOCK_MANAGER & operator=(const HISTORY_LOCK_MANAGER &)=delete
bool IsLocked() const
Check if locks were successfully acquired.