Thread (9 messages) flat view 9 messages, 5 authors, 2021-09-01

Re: Git Modifying DLL

From: Jeff King <hidden>
Date: 2021-08-20 18:00:42

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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help