git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Marking file as non-binary

From
MMaaartin <grajcar1@seznam.cz>
Date
Feb 2, 2011, 14:57 UTC
Message-ID
<iibrce$a8g$1@dough.gmane.org>

For whatever reason, git claims that my foo.cpp (c++ source) is binary, which means I see no diff when doing git log -p. I already tried putting

*.cpp diff=true text=true

in .gitattributes in maybe 20 different variations, but it doesn't help at all. I've checked the filename for typos, etc. Today is a day when really nothing works here.

Next: Matthieu Moy
Message 1 of 2 in “Marking file as non-binary”
  1. MaaartinFeb 2, 2011
  2. Matthieu MoyFeb 2, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.