From a623cd1068fa0542d760bf260d298feb40f75657 Mon Sep 17 00:00:00 2001 From: fauxpark Date: Tue, 5 Aug 2014 17:15:18 +1000 Subject: [PATCH 1/2] Made commit search case insensitive --- src/GitList/Git/Repository.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/GitList/Git/Repository.php b/src/GitList/Git/Repository.php index 08787c8..418aeeb 100644 --- a/src/GitList/Git/Repository.php +++ b/src/GitList/Git/Repository.php @@ -243,7 +243,7 @@ class Repository extends BaseRepository $query = escapeshellarg($query); $query = strtr($query, array('[' => '\\[', ']' => '\\]')); $command = - "log --grep={$query} --pretty=format:\"%H" + "log --grep={$query} -i --pretty=format:\"%H" . "%h%T%P" . "%an%ae" . "%at%cn" From e6f101047ddc1110ed99b77fc2fdd3f596398516 Mon Sep 17 00:00:00 2001 From: fauxpark Date: Sat, 4 Oct 2014 12:53:20 +1000 Subject: [PATCH 2/2] Case insensitivity switch for tree search should be lowercase --- src/GitList/Git/Repository.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/GitList/Git/Repository.php b/src/GitList/Git/Repository.php index 418aeeb..917750c 100644 --- a/src/GitList/Git/Repository.php +++ b/src/GitList/Git/Repository.php @@ -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; }