mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-11-14 02:42:40 +01:00
Support browsing '.' and default to it
Test Plan: Ran 'arc browse', 'arc browse .', 'arc browse main.py'. Reviewers: epriestley, #blessed_reviewers Reviewed By: epriestley CC: Korvin, epriestley, aran, avivey Differential Revision: https://secure.phabricator.com/D8174
This commit is contained in:
parent
c3fe03db08
commit
52d3cd1b4e
1 changed files with 6 additions and 4 deletions
|
@ -50,7 +50,7 @@ EOTEXT
|
||||||
'branch' => array(
|
'branch' => array(
|
||||||
'param' => 'branch_name',
|
'param' => 'branch_name',
|
||||||
'help' =>
|
'help' =>
|
||||||
"Select branch name to view (On server). Defaults to 'master'."
|
"Select branch name to view (on server). Defaults to 'master'."
|
||||||
),
|
),
|
||||||
'*' => 'paths',
|
'*' => 'paths',
|
||||||
);
|
);
|
||||||
|
@ -82,9 +82,11 @@ EOTEXT
|
||||||
$path = preg_replace('/:([0-9]+)$/', '$\1', $path);
|
$path = preg_replace('/:([0-9]+)$/', '$\1', $path);
|
||||||
$full_path = Filesystem::resolvePath($path);
|
$full_path = Filesystem::resolvePath($path);
|
||||||
|
|
||||||
$paths[$key] = Filesystem::readablePath(
|
if ($full_path == $project_root) {
|
||||||
$full_path,
|
$paths[$key] = '';
|
||||||
$project_root);
|
} else {
|
||||||
|
$paths[$key] = Filesystem::readablePath($full_path, $project_root);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!$paths) {
|
if (!$paths) {
|
||||||
|
|
Loading…
Reference in a new issue