From 3507fb454a4a10bce32761c6dcd643de8ee9af77 Mon Sep 17 00:00:00 2001 From: Wim Rijnders Date: Sat, 19 Jan 2013 09:07:50 +0100 Subject: [PATCH] Merged with master main repo. --- src/GitList/Controller/CommitController.php | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/GitList/Controller/CommitController.php b/src/GitList/Controller/CommitController.php index 06f6441..afcd9f4 100644 --- a/src/GitList/Controller/CommitController.php +++ b/src/GitList/Controller/CommitController.php @@ -52,19 +52,13 @@ class CommitController implements ControllerProviderInterface ->value('file', '') ->bind('commits'); -<<<<<<< HEAD $route->post('{repo}/commits/search', function(Request $request, $repo) use ($app) { $repotmp = $app['git']->getRepositoryCached($app['git.repos'], $repo); $repository = $app['git']->getRepository($repotmp->getPath()); + $query = $request->get('query'); $commits = $repository->searchCommitLog($request->get('query')); -======= - $route->post('{repo}/commits/{branch}/search', function(Request $request, $repo, $branch = '') use ($app) { - $repository = $app['git']->getRepository($app['git.repos'] . $repo); - $query = $request->get('query'); - $commits = $repository->searchCommitLog($query); $categorized = array(); ->>>>>>> ab7ffc181b3d27a13e908a4e2b331a085b09f70b foreach ($commits as $commit) { $date = $commit->getDate();