{"thread":{"id":"26388","subject":"Marking file as non-binary","startedAt":"2011-02-02T14:57:21Z","lastAt":"2011-02-02T15:05:11Z","messageCount":2,"participants":["Maaartin","Matthieu Moy"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"160272","messageId":"iibrce$a8g$1@dough.gmane.org","threadId":"26388","inReplyTo":null,"subject":"Marking file as non-binary","fromName":"Maaartin","fromEmail":"grajcar1@seznam.cz","sentAt":"2011-02-02T14:57:21Z","receivedAt":"2011-02-02T14:57:21Z","isPatch":false,"sender":{"key":"grajcar1@seznam.cz","avatar":null},"body":"For whatever reason, git claims that my foo.cpp (c++ source) is binary,\nwhich means I see no diff when doing git log -p. I already tried putting\n\n*.cpp diff=true text=true\n\nin .gitattributes in maybe 20 different variations, but it doesn't help\nat all. I've checked the filename for typos, etc. Today is a day when\nreally nothing works here.\n"},{"id":"160273","messageId":"vpqtygm8ok8.fsf@bauges.imag.fr","threadId":"26388","inReplyTo":"iibrce$a8g$1@dough.gmane.org","subject":"Re: Marking file as non-binary","fromName":"Matthieu Moy","fromEmail":"matthieu.moy@grenoble-inp.fr","sentAt":"2011-02-02T15:05:11Z","receivedAt":"2011-02-02T15:05:11Z","isPatch":false,"sender":{"key":"matthieu.moy@grenoble-inp.fr","avatar":"https://gravatar.com/avatar/72c8a2705971a25dfaff23cece15130d405685845d911aedd5667ace277f3fc5?d=mp&s=160"},"body":"Maaartin <grajcar1@seznam.cz> writes:\n\n> For whatever reason, git claims that my foo.cpp (c++ source) is\n> binary,\n\nThere is probably a null character in your source ('\\0'). You usually\ndon't want that, regardless of Git.\n\n> *.cpp diff=true text=true\n\n*.cpp diff\n\nworks for me. Otherwise, \"git log -p -a\".\n\n-- \nMatthieu Moy\nhttp://www-verimag.imag.fr/~moy/\n"}]}