Changeset View
Changeset View
Standalone View
Standalone View
src/workingcopy/ArcanistGitWorkingCopy.php
- This file was added.
<?php | |||||
final class ArcanistGitWorkingCopy | |||||
extends ArcanistWorkingCopy { | |||||
public function getMetadataDirectory() { | |||||
return $this->getPath('.git'); | |||||
} | |||||
protected function newWorkingCopyFromDirectories( | |||||
$working_directory, | |||||
$ancestor_directory) { | |||||
if (!Filesystem::pathExists($ancestor_directory.'/.git')) { | |||||
return null; | |||||
} | |||||
return new self(); | |||||
} | |||||
public function newRepositoryAPI() { | |||||
return new ArcanistGitAPI($this->getPath()); | |||||
} | |||||
} |