gitlabhq/grit — pull request #39 by qqshfox (2014-03-06 17:18:17+00:00)
Title: fix grep while it matches in binary files

Sometimes there is no "\n\n" between "Binary file ... matches" and the others.

```
master:test/dot_git/file-index
874^@test/dot_git/refs/heads/master
875^@test/dot_git/refs/remotes/origin/HEAD
876^@test/dot_git/refs/remotes/origin/master
Binary file master:test/dot_git/index matches
Binary file master:test/dot_git_iv2/index matches
master:test/dot_git_iv2/info/refs
5^@2d3acf90f35989df8f262dc50beadc4ee3ae1560 refs/heads/testing
6^@ca8a30f5a7f0f163bbe3b6f0abf18a6c83b0687a refs/remotes/origin/HEAD
7^@ca8a30f5a7f0f163bbe3b6f0abf18a6c83b0687a refs/remotes/origin/master
```

The gitlab search snapshots:

before

![2014-03-07 12 24 07](https://f.cloud.github.com/assets/459733/2347966/a06766aa-a552-11e3-9621-7a6dc36064fb.png)

after

![2014-03-07 1 11 24](https://f.cloud.github.com/assets/459733/2347967/a64bf504-a552-11e3-930e-e6bf72a25976.png)

/cc @jacargentina