Exemple #1
0
 /**
  * @param User     $user
  * @param FilePath $relativeFilePath
  *
  * @return int
  */
 public function holdLock(User $user, FilePath $relativeFilePath)
 {
     $lockPath = $this->getLockPath($relativeFilePath);
     $this->assertHasLock($user, $lockPath);
     $this->gitRepository->touch($lockPath);
     return $this->getLockExpiry($lockPath);
 }