Re: [PATCH v2] help: improve is_executable() on Windows

2017-01-30 Thread Junio C Hamano
Johannes Schindelin writes: > From: Heiko Voigt > > On Windows, executables need to have the file extension `.exe`, or they > are not executables. Hence, to support scripts, Git for Windows also > looks for a she-bang line by opening the file in question, and executing > it via the specified scr

[PATCH v2] help: improve is_executable() on Windows

2017-01-30 Thread Johannes Schindelin
From: Heiko Voigt On Windows, executables need to have the file extension `.exe`, or they are not executables. Hence, to support scripts, Git for Windows also looks for a she-bang line by opening the file in question, and executing it via the specified script interpreter. To figure out whether f