From: Junio C Hamano Date: Fri, 25 Nov 2022 07:31:04 GMT Subject: Re: [PATCH v2] config: introduce an Operating System-specific `includeIf` condition Message-ID: In-Reply-To: <969a4399-a6db-7c72-f96c-8bbe5f6208d4@iee.email> Philip Oakley writes: >> Let's introduce a new condition: `os:` where `` is the >> system name, i.e. the output of `uname -s`. > > This `uname -s` doesn't work well on Git-for-Windows (GfW) / Windows > because GfW has its own internal compatibility code to spoof the result. > ... > Or just drop the mentions of "" in this commit message and > rename it 'sysname' to match the field of the struct utsname? FWIW I do not mind "sysname". It is much better to say [includeIf "sysname:Linux"] path = ... than "os:Linux", as "sysname" informs us the granularity used to identify the system better than "os".