com web/gcov: update SVN links with git: www/site.api.php
| From: | Nuno Lopes | Date: | Sun, 31 Aug 2014 15:57:10 +0000 |
| Subject: | com web/gcov: update SVN links with git: www/site.api.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-19845@lists.php.net to get a copy of this message | ||
Commit: b3caf8a34031ac0a80fb086cb9afe88e8d2d029f
Author: Nuno Lopes <nlopess@php.net> Sun, 31 Aug 2014 11:57:10 -0400
Parents: 2ecded177c574b4b1a16b0f7114bfa699d439535
Branches: master
Link: http://git.php.net/?p=web/gcov.git;a=commitdiff;h=b3caf8a34031ac0a80fb086cb9afe88e8d2d029f
Log:
update SVN links with git
Changed paths:
M www/site.api.php
Diff:
diff --git a/www/site.api.php b/www/site.api.php
index c4ceec8..9a86f09 100644
--- a/www/site.api.php
+++ b/www/site.api.php
@@ -322,9 +322,10 @@ function make_cvs_link($path, $line)
}
if ($GLOBALS['version'] === 'PHP_HEAD') {
- $link = "http://svn.php.net/viewvc/php/php-src/trunk/{$path}?view=markup#l$line";
+ $link = "http://git.php.net/?p=php-src.git;a=blob;f=$path;hb=HEAD#l$line";
} else {
- $link = "http://svn.php.net/viewvc/php/php-src/branches/{$GLOBALS['version']}/{$path}?view=markup#l$line";
+ $v = preg_replace('/PHP_(\d+)_(\d+)/', 'PHP-\1.\2',
$GLOBALS['version']);
+ $link = "http://git.php.net/?p=php-src.git;a=blob;f=$path;hb=refs/heads/$v#l$line";
}
return "<a href=\"$link\">$line</a>";