Skip to content

Commit

Permalink
Merge pull request #498 from fauxpark/commit-search-case-sens
Browse files Browse the repository at this point in the history
Made search functions case insensitive
  • Loading branch information
klaussilveira committed Nov 14, 2014
2 parents 4d6fffc + e6f1010 commit 57818a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/GitList/Git/Repository.php
Expand Up @@ -243,7 +243,7 @@ public function searchCommitLog($query)
$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>"
Expand Down Expand Up @@ -271,7 +271,7 @@ public function searchTree($query, $branch)
$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;
}
Expand Down

0 comments on commit 57818a0

Please sign in to comment.