{"thread":{"id":"23154","subject":"git grep -a doesn't find string in binary file","startedAt":"2010-03-23T22:06:58Z","lastAt":"2010-03-23T22:06:58Z","messageCount":1,"participants":["Phil Lawrence"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"137673","messageId":"530ac78e1003231506x295080cey858a5f393548cc53@mail.gmail.com","threadId":"23154","inReplyTo":null,"subject":"git grep -a doesn't find string in binary file","fromName":"Phil Lawrence","fromEmail":"prlawrence@gmail.com","sentAt":"2010-03-23T22:06:58Z","receivedAt":"2010-03-23T22:06:58Z","isPatch":false,"sender":{"key":"prlawrence@gmail.com","avatar":"https://gravatar.com/avatar/352044d06dd8919a32522c18c712e0a8d07b8e8719c820b4b50ffb8f6f2fa1f0?d=mp&s=160"},"body":"I have a binary file with the string 'SEGMENT4' inside:\n    $ strings AR/reports/BMCD_AGED_AR_CUST.rdf | grep -i segment4\n    (CC.SEGMENT1 || '\\n' || SEGMENT2 || '\\n' || SEGMENT3 || '\\n' || SEGMENT4 ...\n\ngrep sees it:\n    $ grep -li segment4 AR/reports/BMCD_AGED_AR_CUST.rdf | wc -l\n          1\n\ngit grep does not:\n    $ git grep -a -li segment4 AR/reports/BMCD_AGED_AR_CUST.rdf | wc -l\n          0\n\nWhat am I missing?\n\nHere is my environment info:\n    $ uname -a\n    MINGW32_NT-5.1 B8058 1.0.12(0.46/3/2) 2010-02-05 01:08 i686 unknown\n\n    $ git --version\n    git version 1.7.0.2.msysgit.0\n\nThank you,\nPhil Lawrence\n"}]}