Indefero

Indefero Commit Details


Date:2009-11-06 08:58:21 (15 years 1 month ago)
Author:Loic d'Anterroches
Branch:develop, feature-issue_links, feature.better-home, feature.content-md5, feature.diff-whitespace, feature.download-md5, feature.issue-links, feature.issue-of-others, feature.issue-summary, feature.search-filter, feature.webrepos, feature.wiki-default-page, master, release-1.1, release-1.2, release-1.3
Commit:3c46b7734ff20287991cbdf81f56702ec658c23c
Parents: 48ff3144872d670b652700c530843ede2d4137c4
Message:Added the ability to use the username of a user to link a git commit.

Changes:

File differences

src/IDF/Scm/Git.php
191191
192192
193193
194
195
196
194
195
196
197
198
199
200
201
197202
198203
199204
if (!preg_match('/<(.*)>/', $author, $match)) {
return null;
}
$sql = new Pluf_SQL('email=%s', array($match[1]));
$users = Pluf::factory('Pluf_User')->getList(array('filter'=>$sql->gen()));
return ($users->count() > 0) ? $users[0] : null;
foreach (array('email', 'login') as $what) {
$sql = new Pluf_SQL($what.'=%s', array($match[1]));
$users = Pluf::factory('Pluf_User')->getList(array('filter'=>$sql->gen()));
if ($users->count() > 0) {
return $users[0];
}
}
return null;
}
public static function getAnonymousAccessUrl($project)

Archive Download the corresponding diff file

Page rendered in 0.06870s using 13 queries.