Changeset View
Changeset View
Standalone View
Standalone View
src/repository/api/ArcanistGitAPI.php
| Show First 20 Lines • Show All 1,048 Lines • ▼ Show 20 Lines | foreach ($branches as $branch) { | ||||
| ->setIsCurrentBranch($branch['current']) | ->setIsCurrentBranch($branch['current']) | ||||
| ->attachCommitRef($commit_ref); | ->attachCommitRef($commit_ref); | ||||
| } | } | ||||
| return $refs; | return $refs; | ||||
| } | } | ||||
| public function getBaseCommitRef() { | public function getBaseCommitRef() { | ||||
| $base_commit = $this->getSourceControlBaseRevision(); | $base_commit = $this->getBaseCommit(); | ||||
| if ($base_commit === self::GIT_MAGIC_ROOT_COMMIT) { | |||||
| return null; | |||||
| } | |||||
| $base_message = $this->getCommitMessage($base_commit); | $base_message = $this->getCommitMessage($base_commit); | ||||
| // TODO: We should also pull the tree hash. | // TODO: We should also pull the tree hash. | ||||
| return $this->newCommitRef() | return $this->newCommitRef() | ||||
| ->setCommitHash($base_commit) | ->setCommitHash($base_commit) | ||||
| ->attachMessage($base_message); | ->attachMessage($base_message); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 434 Lines • Show Last 20 Lines | |||||