Changeset View
Changeset View
Standalone View
Standalone View
src/applications/repository/storage/PhabricatorRepository.php
| Show First 20 Lines • Show All 676 Lines • ▼ Show 20 Lines | /* -( Local Command Execution )-------------------------------------------- */ | ||||
| public function generateURI(array $params) { | public function generateURI(array $params) { | ||||
| $req_branch = false; | $req_branch = false; | ||||
| $req_commit = false; | $req_commit = false; | ||||
| $action = idx($params, 'action'); | $action = idx($params, 'action'); | ||||
| switch ($action) { | switch ($action) { | ||||
| case 'history': | case 'history': | ||||
| case 'graph': | |||||
| case 'clone': | case 'clone': | ||||
| case 'blame': | case 'blame': | ||||
| case 'browse': | case 'browse': | ||||
| case 'document': | case 'document': | ||||
| case 'change': | case 'change': | ||||
| case 'lastmodified': | case 'lastmodified': | ||||
| case 'tags': | case 'tags': | ||||
| case 'branches': | case 'branches': | ||||
| ▲ Show 20 Lines • Show All 64 Lines • ▼ Show 20 Lines | public function generateURI(array $params) { | ||||
| if (strlen($line)) { | if (strlen($line)) { | ||||
| $line = '$'.phutil_escape_uri($line); | $line = '$'.phutil_escape_uri($line); | ||||
| } | } | ||||
| $query = array(); | $query = array(); | ||||
| switch ($action) { | switch ($action) { | ||||
| case 'change': | case 'change': | ||||
| case 'history': | case 'history': | ||||
| case 'graph': | |||||
| case 'blame': | case 'blame': | ||||
| case 'browse': | case 'browse': | ||||
| case 'document': | case 'document': | ||||
| case 'lastmodified': | case 'lastmodified': | ||||
| case 'tags': | case 'tags': | ||||
| case 'branches': | case 'branches': | ||||
| case 'lint': | case 'lint': | ||||
| case 'pathtree': | case 'pathtree': | ||||
| ▲ Show 20 Lines • Show All 2,070 Lines • Show Last 20 Lines | |||||