Changeset View
Changeset View
Standalone View
Standalone View
src/loader/ArcanistGitRevisionHardpointLoader.php
Show All 27 Lines | foreach ($refs as $ref_key => $ref) { | ||||
$commit_hashes = array(); | $commit_hashes = array(); | ||||
$commit_hashes[] = array( | $commit_hashes[] = array( | ||||
'gtcm', | 'gtcm', | ||||
$commit->getCommitHash(), | $commit->getCommitHash(), | ||||
); | ); | ||||
if ($commit->getTreeHash()) { | |||||
$commit_hashes[] = array( | $commit_hashes[] = array( | ||||
'gttr', | 'gttr', | ||||
$commit->getTreeHash(), | $commit->getTreeHash(), | ||||
); | ); | ||||
} | |||||
foreach ($commit_hashes as $hash) { | foreach ($commit_hashes as $hash) { | ||||
$hashes[] = $hash; | $hashes[] = $hash; | ||||
$hash_key = $this->getHashKey($hash); | $hash_key = $this->getHashKey($hash); | ||||
$map[$hash_key][$ref_key] = $ref; | $map[$hash_key][$ref_key] = $ref; | ||||
} | } | ||||
} | } | ||||
Show All 33 Lines |