mirror of
https://github.com/klaussilveira/gitlist.git
synced 2025-11-17 11:10:57 +01:00
Merge pull request #498 from fauxpark/commit-search-case-sens
Made search functions case insensitive
This commit is contained in:
@@ -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>"
|
||||
@@ -271,7 +271,7 @@ class Repository extends BaseRepository
|
||||
$query = escapeshellarg($query);
|
||||
|
||||
try {
|
||||
$results = $this->getClient()->run($this, "grep -I --line-number {$query} $branch");
|
||||
$results = $this->getClient()->run($this, "grep -i --line-number {$query} $branch");
|
||||
} catch (\RuntimeException $e) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user