Remove detection of if grep supports --color

Reverts feature introduced in commit d59ac0394a

If you know your system's grep command does not support color, please use:

    let g:gitgutter_grep_command = 'grep -e'
This commit is contained in:
Dan Church
2016-01-15 10:30:47 -06:00
committed by Andy Stewart
parent 3131bdcbb8
commit e884a0e26d

View File

@@ -4,12 +4,7 @@ if exists('g:gitgutter_grep_command')
else else
let s:grep_available = executable('grep') let s:grep_available = executable('grep')
if s:grep_available if s:grep_available
let s:grep_command = 'grep' let s:grep_command = 'grep --color=never -e'
let s:grep_help = gitgutter#utility#system('grep --help')
if s:grep_help =~# '--color'
let s:grep_command .= ' --color=never'
endif
let s:grep_command .= ' -e'
endif endif
endif endif
let s:hunk_re = '^@@ -\(\d\+\),\?\(\d*\) +\(\d\+\),\?\(\d*\) @@' let s:hunk_re = '^@@ -\(\d\+\),\?\(\d*\) +\(\d\+\),\?\(\d*\) @@'