]> code.delx.au - gnu-emacs-elpa/commitdiff
counsel.el (counsel-git-grep-count): Ignore case
authorOleh Krehel <ohwoeowho@gmail.com>
Tue, 21 Apr 2015 13:08:57 +0000 (15:08 +0200)
committerOleh Krehel <ohwoeowho@gmail.com>
Tue, 21 Apr 2015 13:08:57 +0000 (15:08 +0200)
counsel.el

index 7ad7787ff92f6df90543efe81703b83ea40a6e1d..e00bc59f00e91f665039694280d0f47e92cb05d5 100644 (file)
 (defun counsel-git-grep-count (str)
   "Quickly count the amount of git grep STR matches."
   (let ((out (shell-command-to-string
-              (format "git grep -c '%s' | sed 's/.*:\\(.*\\)/\\1/g' | awk '{s+=$1} END {print s}'"
+              (format "git grep -i -c '%s' | sed 's/.*:\\(.*\\)/\\1/g' | awk '{s+=$1} END {print s}'"
                       (ivy--regex str)))))
     (string-to-number out)))