Made commit search case insensitive

This commit is contained in:
fauxpark
2014-08-05 17:15:18 +10:00
parent 6c99ffee4c
commit a623cd1068

View File

@@ -243,7 +243,7 @@ class Repository extends BaseRepository
$query = escapeshellarg($query);
$query = strtr($query, array('[' => '\\[', ']' => '\\]'));
$command =
"log --grep={$query} --pretty=format:\"<item><hash>%H</hash>"
"log --grep={$query} -i --pretty=format:\"<item><hash>%H</hash>"
. "<short_hash>%h</short_hash><tree>%T</tree><parents>%P</parents>"
. "<author>%an</author><author_email>%ae</author_email>"
. "<date>%at</date><commiter>%cn</commiter>"