Added Gerrit link.
diff --git a/commits/repositories.php b/commits/repositories.php
index 098bcbe..6ac301c 100644
--- a/commits/repositories.php
+++ b/commits/repositories.php
@@ -22,10 +22,11 @@
 function captureRepository($repository) {
 	$name = getName($repository);
 	$git = "git://git.eclipse.org$repository";
+	$gerrit = getGerritLink($repository);
 	$http = getHttpLink($repository);
 	$github = "https://github.com/eclipse/$name";
 	
-	echo "update repositories set name='$name' git='$git' http='$http' github='$github' where repo='$git');\n";
+	echo "update repositories set name='$name' git='$git' gerrit='$gerrit' http='$http' github='$github' where repo='$git');\n";
 }
 
 function getName($path) {
@@ -48,6 +49,13 @@
 	return "http://git.eclipse.org/c/$partial";
 } 
 
+function getGerritLink($path) {
+	preg_match('/\/gitroot\/(.+)/', $path, $matches);
+	$partial = $matches[1];
+	$gerrit = "https://git.eclipse.org/r/p/$partial";
+	return $gerrit;
+}
+
 // Pull in a list of repostories
 
 // For each...