Add option to filter commits from feeds using a pattern
[gitphp.git] / include / controller / Controller_Feed.class.php
blob:a/include/controller/Controller_Feed.class.php -> blob:b/include/controller/Controller_Feed.class.php
--- a/include/controller/Controller_Feed.class.php
+++ b/include/controller/Controller_Feed.class.php
@@ -114,6 +114,9 @@
 		//	$strategy = new GitPHP_LogLoad_Raw();
 		//}
 		$log = new GitPHP_Log($this->GetProject(), $this->GetProject()->GetHeadCommit(), $strategy, GitPHP_Controller_Feed::FeedItemCount);
+		if ($this->config->HasKey('feedfilter')) {
+			$log->FilterCommits($this->config->GetValue('feedfilter'));
+		}
 		$log->FilterOldCommits(48*60*60, 20);
 
 		$this->tpl->assign('log', $log);

comments