protected function getPackfileNames()
{
$return = array();
if (is_dir($this->git_dir . '/objects/pack/')) {
foreach (scandir($this->git_dir . '/objects/pack/') as $filename) {
$matches = array();
if (preg_match('/^(pack-[0-9a-fA-F]+).pack$/', $filename, $matches) > 0) {
$return[] = $matches[1];
}
}
}
return $return;
}