From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS3215 2.6.0.0/16 X-Spam-Status: No, score=-3.8 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by dcvr.yhbt.net (Postfix) with ESMTP id 427781F910 for ; Wed, 23 Nov 2022 11:55:32 +0000 (UTC) Authentication-Results: dcvr.yhbt.net; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="XDYHeD4Z"; dkim-atps=neutral Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236769AbiKWLyv (ORCPT ); Wed, 23 Nov 2022 06:54:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60906 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236639AbiKWLyt (ORCPT ); Wed, 23 Nov 2022 06:54:49 -0500 Received: from mail-pj1-x1036.google.com (mail-pj1-x1036.google.com [IPv6:2607:f8b0:4864:20::1036]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 95DFB4E420 for ; Wed, 23 Nov 2022 03:54:48 -0800 (PST) Received: by mail-pj1-x1036.google.com with SMTP id k5so15692913pjo.5 for ; Wed, 23 Nov 2022 03:54:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=ZzJwSdYaDzLlNhk6YQ/h/s5Zl3+Ivs11nC/xvO1tgcs=; b=XDYHeD4ZITBbzAxvAzI1CuHXhwGgUHyZ71zHSqd9WuiHdIFjis+6pqiL/OwmSnifgg CHr8G5irsxb1AYkbN7FWma/v1rXyuZCb/CG0gp5u3sEDxp7BURxkEXPLKzajKuPjvoAl JJu/KgxRva2Nd33KyBrkiSgv6AqqHSffQPa1wHJHK7QllR7muO87NWVlzyzNroCcNKSq bhU0Ukc0g2MUx5iRzXtBC2QbXy9XGgMoGeUFlzmXiFfY/cDzM4zthmQjO7AuEWXmCvm+ VFE7/vdGhlqXikVk5E3jkXu7fTanpA5JGUSK1vta74R63wXKSdALhWxdwCA65hJN3yE3 SeBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=ZzJwSdYaDzLlNhk6YQ/h/s5Zl3+Ivs11nC/xvO1tgcs=; b=KzOYzH5/o8mdxwKT9Ss3b4dNv9wIMY0KO+VqWHDKUhBCSH33sHW4l0kuTDIuXcMtts ILv7Spx3/epSLwDZ/xM1GuSVsge7Rwa1HqswtzohfICIyEAJdBfFb53LxxuC6amzFumM xFGqGmHfYTp2NNPpsSdeGTfaQ1zk86Qm0hZoliY3lA8uhMX+7OpIAnsYRfVYVxlFLtof gM3nL2I/WdeckRgSVvpkkNRNVabaSKiZoZC6ztT9qu1/tR5XNNF7CkGGpMk4nmWGX8eA /JaSPvHAuZSl1Lw198Vs8++BNvh9HAgUPnrVPqP6rJWKCrdLKnffLML39xFYGFm84BQv sHlg== X-Gm-Message-State: ANoB5pnSyu1ppvIPBWoDVp7fF6cRWyXJIa8F2FAgth3xGMm6HM3icvcQ ONxF33o78gaYNIy4s6xQk+0= X-Google-Smtp-Source: AA0mqf5c0gD8foysWIYLjWf5ngArAXghdaEJ44rxEN9MKBhLN7cK1D7txvDTIYtqfqnWV7MWYocH8g== X-Received: by 2002:a17:902:d68b:b0:188:cca8:df29 with SMTP id v11-20020a170902d68b00b00188cca8df29mr14523566ply.148.1669204488103; Wed, 23 Nov 2022 03:54:48 -0800 (PST) Received: from localhost ([2001:ee0:4f8b:a070:2a99:1bbd:b117:5037]) by smtp.gmail.com with ESMTPSA id d17-20020a170903231100b00178b77b7e71sm10671720plh.188.2022.11.23.03.54.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Nov 2022 03:54:47 -0800 (PST) Date: Wed, 23 Nov 2022 18:54:45 +0700 From: =?utf-8?B?xJBvw6BuIFRy4bqnbiBDw7RuZw==?= Danh To: Jeff King Cc: Johannes Schindelin via GitGitGadget , git@vger.kernel.org, =?utf-8?B?w4Z2YXIgQXJuZmrDtnLDsA==?= Bjarmason , Phillip Wood , Johannes Schindelin Subject: Re: [PATCH v2] config: introduce an Operating System-specific `includeIf` condition Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org On 2022-11-21 18:32:11-0500, Jeff King wrote: > On Mon, Nov 21, 2022 at 07:19:48PM +0000, Johannes Schindelin via GitGitGadget wrote: > > > It is relatively common for users to maintain identical `~/.gitconfig` > > files across all of their setups, using the `includeIf` construct > > liberally to adjust the settings to the respective setup as needed. > > This seems like a reasonable thing to have in general, but I wonder if > you have an example of how people use this. Mostly I am wondering: > > - is it sometimes a misuse, where users _think_ that the OS is > correlated with some feature of Git. And they would be better off > with some flag like "does the current platform support fsmonitor". A possible use-case is setting credential.helper based on OS, let's say libsecret on Linux, and osxkeychain on macOS. Of course, users can have their own helper on specific OS. > > - for cases where it really is "uname -s" the best differentiator? Or > would they commonly want to lump FreeBSD and Linux into the same > category, or to tell the difference between Debian versus Fedora? > > -Peff -- Danh