From e4d63ec8a27df36d342b2fdab2c7bb4c9da47c67 Mon Sep 17 00:00:00 2001 From: philc Date: Thu, 10 Feb 2011 11:15:09 -0800 Subject: [PATCH] Make the search case insensitive --- lib/gollum/wiki.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/gollum/wiki.rb b/lib/gollum/wiki.rb index e8a65246..742f8375 100644 --- a/lib/gollum/wiki.rb +++ b/lib/gollum/wiki.rb @@ -407,7 +407,7 @@ module Gollum # # Returns an Array with Objects of page name and count of matches def search(query) - args = [{:c => query}, 'master', '--'] + args = [{}, '-i', '-c', query, 'master', '--'] args << '--' << @page_file_dir if @page_file_dir @repo.git.grep(*args).split("\n").map! do |line|