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

Re: [PATCH 1/3] help.c: Fix detection of custom merge strategy on cygwin

From
Mark Levedahl <mlevedahl@gmail.com>
Date
Jun 18, 2011, 22:46 UTC
Message-ID
<4DFD2AB8.2050907@gmail.com>
In-Reply-To
<4DFCD8E1.3060102@ramsay1.demon.co.uk>
On 06/18/2011 12:57 PM, Ramsay Jones wrote:
Show 16 quoted lines
>
> Anyway, if you don't mind executing the "WIN32 code block" unnecessarily
> on cygwin (I don't think it would be too expensive) then we could simply
> reduce the patch to:
>
> -#ifdef WIN32
> +#if defined(WIN32) || defined(__CYGWIN__)
>   {	/* cannot trust the executable bit, peek into the file instead */
>
> (I've simply typed the above in my MUA, so not tested, obviously!)
>
> This is exactly what Johannes proposed last year. :)
>
> ATB,
> Ramsay Jones
>

Please, no. Cygwin's git is already slow enough, and adding yet another peek into a file *after* cygwin already did that is just making it worse.

(Muttering to self: Cygwin's goal is to replicate Linux / Posix behavior under Windows, why did git ever adopt code to make cygwin more like Windows rather than just treating cygwin as another Posix'y environment? Those who want more speed really should just be using the native win32 port and deal with the lack of file modes, crlf issues, etc.)

Mark
Previous: Ramsay Jones
Message 4 of 4 in “help.c: Fix detection of custom merge strategy on cygwin”
  1. 1/3 help.c: Fix detection of custom merge strategy on cygwinRamsay Jones, Jun 16, 2011
  2. Junio C HamanoJun 16, 2011
  3. Ramsay JonesJun 18, 2011
  4. Mark LevedahlJun 18, 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.