From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=0.1 required=5.0 tests=BULK_RE_SUSP_NTLD,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FROM_SUSPICIOUS_NTLD,MAILING_LIST_MULTI, PDS_OTHER_BAD_TLD,RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 32099 invoked from network); 9 Jan 2022 03:05:15 -0000 Received: from lists.zx2c4.com (165.227.139.114) by inbox.vuxu.org with ESMTPUTF8; 9 Jan 2022 03:05:15 -0000 Received: by lists.zx2c4.com (OpenSMTPD) with ESMTP id 008d4a29; Sun, 9 Jan 2022 03:04:58 +0000 (UTC) Return-Path: Received: from mariecurie.labrat.space (mariecurie.labrat.space [116.203.185.229]) by lists.zx2c4.com (OpenSMTPD) with ESMTPS id 0413a6fa (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO) for ; Sun, 9 Jan 2022 03:04:56 +0000 (UTC) Received: from labrat.space (adsl-178-38-36-59.adslplus.ch [178.38.36.59]) by mariecurie.labrat.space (Postfix) with ESMTPSA id 98D172F9C58C; Sun, 9 Jan 2022 04:04:56 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=labrat.space; s=201904; t=1641697496; bh=DWHjzG7t7unUJutwvJ44cCxy6fhq5WiHkaZLohFviaM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To:From:To:CC:Date: Subject:Content-Type:Content-Disposition:Reply-To:In-Reply-To: MIME-Version:Message-ID:References; b=gb5HGbL/GW1n0dLzcEHvmGc11bhwgfRBrovO+we8Wu7AI1mHgaEji9k004d2l6mS6 OAb8kfuk/ubOdSCPjOBS7XtiIq62nt7pDJiIeJfBpLDOBHBD+5C4pD+CJM4zY9Pnfv xJb8CAd3SUHQunDKOnriWYtgDyTssBS5vieEkeeQWRfQKgPLBRhm44FIv1I+BAJfVq +nvTYBKS3ZpDaZRnsg5Ry33oH/DhxQlDSDNp3R+flJuKY5b/23aSINnnGqCBxc3NbE KwxGTlWHRomR+gZvZBqVLwOz7vlonnjkNh8eaMg/OXJGoJ+qN56TrgeyBw4LhuqfRF O5KSk317Xp7Hw== Date: Sun, 9 Jan 2022 04:04:54 +0100 From: Reto To: Derek Stevens Cc: cgit@lists.zx2c4.com Subject: Re: [PATCH] use main as default branch instead of master Message-ID: <20220109030454.r2gxxox4hzz5uf6g@feather> Mail-Followup-To: Derek Stevens , cgit@lists.zx2c4.com References: <20220109014545.17815-1-nilix@nilfm.cc> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20220109014545.17815-1-nilix@nilfm.cc> X-BeenThere: cgit@lists.zx2c4.com X-Mailman-Version: 2.1.30rc1 Precedence: list List-Id: List for cgit developers and users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: cgit-bounces@lists.zx2c4.com Sender: "CGit" Replacing one hard coded value with another is really not helpful. Git itself solves this locally with init.defaultBranch in its config. If the corresponding option is unset you are helpfully told to choose one. That is however not simply a matter of s/master/main/ but the following: >Names commonly chosen instead of 'master' are 'main', 'trunk' and >'development'. As you can see, multiple "common" options. There's work ongoing in git to make this more streamlined, last example I know being commit e06c9e1df28e04bbf013840c6c50ce1be41b9583 Author: Thomas Weißschuh Date: Wed Nov 3 21:17:02 2021 +0100 var: add GIT_DEFAULT_BRANCH variable. There's also similar efforts that would allow querying a remote. So I'd suggest you wait for upstream to figure it out first, rather than blindly substituting the term which would break existing setup for no real reason.