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

Re: Git Modifying DLL

From
Jeff King <peff@peff.net>
Date
Aug 20, 2021, 18:00 UTC
Message-ID
<YR/tyHWQ6+2sP2iA@coredump.intra.peff.net>
In-Reply-To
<CAG83euo2B4QFU_S6Yqd3UACWq63p=L+T30CwzT52D8H=S5pRVg@mail.gmail.com>
On Thu, Aug 19, 2021 at 01:21:03PM -0500, Jonathon Anderson wrote:
> I had not. I tested that and it worked. I assumed that git would
> automatically treat dll files as binary. Thanks for the help!

Git doesn't know about any file extensions by default. Its default "is it binary" test looks for NUL bytes in the first 8k or so of the file. I'd expect your DLL would probably have such a NUL byte.

Is it possible you have other .gitattributes set which are confusing things?

You might try:
  git check-attr --all <path>
or:
  git ls-files --stdin | git check-attr --stdin --all
-Peff
Previous: Torsten BögershausenNext: Jonathon Anderson
Message 5 of 9 in “Git Modifying DLL”
  1. Jonathon AndersonAug 19, 2021
  2. Randall S. BeckerAug 19, 2021
  3. Jonathon AndersonAug 19, 2021
  4. Torsten BögershausenAug 20, 2021
  5. Jeff KingAug 20, 2021
  6. Jonathon AndersonAug 20, 2021
  7. brian m. carlsonAug 20, 2021
  8. Randall S. BeckerAug 20, 2021
  9. Jonathon AndersonSep 1, 2021

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.