Re: [PATCH] mingw: allow hooks to be .exe files
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Jan 26, 2017, 13:45 UTC
- Message-ID
- <alpine.DEB.2.20.1701261441290.3469@virtualbox>
- In-Reply-To
- <xmqq37g6akfx.fsf@gitster.mtv.corp.google.com>
Hi Junio,
On Wed, 25 Jan 2017, Junio C Hamano wrote:
Show 7 quoted lines
> Johannes Schindelin <johannes.schindelin@gmx.de> writes: > > > This change is necessary to allow the files in .git/hooks/ to optionally > > have the file extension `.exe` on Windows, as the file names are > > hardcoded otherwise. > > Hmph. There is no longer ".com"?
No, no longer .com. You have to jump through hoops in this century to build .com files.
> I briefly wondered if hooks/post-receive.{py,rb,...} would be good
> things to support, but I do not think we want to go there, primarily
> because we do not want to deal with "what happens when there are many?"The answer is correct, the reasoning not. The reason why .exe is special: it simply won't execute unless it has the .exe file extension. That is not true for .py, .rb, etc
Ciao, Johannes