Commit b15d9941 authored by Thong Kuah's avatar Thong Kuah

Use git grep to search for conflict headers

`grep -z` isn't supported in MacOS grep.

Also the script doesn't seem to catch some cases probably because of
`xargs -0`
parent 5c17bc70
#!/bin/sh
output=`git ls-files -z | grep -zvE '\.(rb|js|haml)$' | xargs -0n1 grep -HEn '^<<<<<<< '`
output=`git grep -En '^<<<<<<< ' -- . ':(exclude)*.haml' ':(exclude)*.js' ':(exclude)*.rb'`
echo $output
test -z "$output"
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment