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

Re: Marking file as non-binary

From
Matthieu Moy <matthieu.moy@grenoble-inp.fr>
Date
Feb 2, 2011, 15:05 UTC
Message-ID
<vpqtygm8ok8.fsf@bauges.imag.fr>
In-Reply-To
<iibrce$a8g$1@dough.gmane.org>
Maaartin <grajcar1@seznam.cz> writes:
> For whatever reason, git claims that my foo.cpp (c++ source) is
> binary,

There is probably a null character in your source ('\0'). You usually don't want that, regardless of Git.

> *.cpp diff=true text=true
*.cpp diff
works for me. Otherwise, "git log -p -a".
-- 
Matthieu Moy
http://www-verimag.imag.fr/~moy/
Previous: Maaartin
Message 2 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.