lib/git_store.rb
def start_transaction
    file = open("#{head_path}.lock", "w")
    file.flock(File::LOCK_EX)
    
    Thread.current['git_store_lock'] = file
    
    load if changed?
  end
# Start a transaction.
#
# Tries to get lock on lock file, reload the this store if
# has changed in the repository.
Start a transaction.
Tries to get lock on lock file, reload the this store if
has changed in the repository.
Start a transaction . Tries to get lock on lock file reload the this store if has changed in the repository .
def start_transaction
    file = open("#{head_path}.lock", "w")
    file.flock(File::LOCK_EX)
    Thread.current['git_store_lock'] = file
    load if changed?
  end
def start_transaction file = open ( "#{head_path}.lock" , "w" ) file . flock ( File :: LOCK_EX ) Thread . current [ 'git_store_lock' ] = file load if changed? end
Start a transaction.
Start a transaction .