FAQ
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>";

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 1 | next ›
Discussion Overview
groupphp-webmaster @
categoriesphp
postedAug 31, '14 at 3:57p
activeAug 31, '14 at 3:57p
posts1
users1
websitephp.net

1 user in discussion

Nuno Lopes: 1 post

People

Translate

site design / logo © 2017 Grokbase