Gitonomy\Git\Repository::getGitDir PHP Метод

getGitDir() публичный Метод

Returns the directory containing git files (git-dir).
public getGitDir ( ) : string
Результат string
    public function getGitDir()
    {
        return $this->gitDir;
    }

Usage Example

Пример #1
0
 public static function registerDeletion(Repository $repository)
 {
     register_shutdown_function(function () use($repository) {
         if ($repository->getWorkingDir()) {
             $dir = $repository->getWorkingDir();
         } else {
             $dir = $repository->getGitDir();
         }
         AbstractTest::deleteDir($dir);
     });
 }
All Usage Examples Of Gitonomy\Git\Repository::getGitDir