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

[RFC] Is there a need for binary bit in cache/tree entries to properly support Cygwin builds of GIT?

From
Jon Seymour <jon.seymour@gmail.com>
Date
Apr 22, 2005, 08:53 UTC
Message-ID
<2cfc403205042201534bef0276@mail.gmail.com>
In-Reply-To
<BAY22-F35C035C6AE6B9A45CDEF61FF2D0@phx.gbl>
On 4/22/05, lode leroy <lode_leroy@hotmail.com> wrote:
> I wonder if anyone is interested in using git on windows / cygwin.
> It almost compiles out of the box... just this one little thinggy
> that's glibc-specific (struct dirent . d_type)
> 
 
I wonder if a cygwin compile of GIT should be forced to strip CR's
from text files prior to checksum calculations and blob storage.
Otherwise, spurious differences may be introduced into text files that
are somehow munged while checked out in a Windows environment.

There is an argument that this should be done external to the GIT core, but then every external non-unix tool that interacts with GIT has to have heuristics to distinguish text from binary and they all have to have the same heuristics.

So, perhaps there is an argument for using one of the unused "mode" bits to encode a binary flag and add an option to update-cache that allows the bit to be flipped if a blob is known to be binary. A cygwin GIT binary could then be forced to strip CR's from blobs marked as text, but a unix binary need not change its behaviour.

Regards,
jon.
Previous: lode leroy
Message 2 of 2 in “(nearly trivial) patch to compile git on cygwin”
  1. lode leroyApr 22, 2005
  2. [RFC] Is there a need for binary bit in cache/tree entries to properly support Cygwin builds of GIT?Jon Seymour, Apr 22, 2005

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.