Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oAz73-00088y-Vm for pgsql-hackers@arkaria.postgresql.org; Mon, 11 Jul 2022 19:30:33 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oAz72-0001s6-Sn for pgsql-hackers@arkaria.postgresql.org; Mon, 11 Jul 2022 19:30:32 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oAz72-0001rl-Iy for pgsql-hackers@lists.postgresql.org; Mon, 11 Jul 2022 19:30:32 +0000 Received: from wout4-smtp.messagingengine.com ([64.147.123.20]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oAz6x-0001hO-L0 for pgsql-hackers@lists.postgresql.org; Mon, 11 Jul 2022 19:30:31 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 701C732000E5 for ; Mon, 11 Jul 2022 15:30:25 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Mon, 11 Jul 2022 15:30:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:date:feedback-id:feedback-id:from:from:in-reply-to :message-id:mime-version:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; t=1657567824; x=1657654224; bh=wvlD32kTsuiudeyBQxX/cC+KdQUF Su7nmAnsuUhjs4I=; b=UHZWIhkaWsZDVVdCCQnbOjv56oC9Ze9Y9wcD2HX2maud Kbu3HwtN0vQ8+Xz4t2GOh1U3CkA+4fYoRLDQAA9slg4SurQz36lkDiLbXMpnt4iH MO2NerkGnS29NQdXGR3AEpNI+EVXPPRRGxXVifoGGhd7mKvWXsNiK3/JsXLxdJRY gGMJkz5zjcRZ/2SuniXOMCsle+00X/lG40Ix7hjnTnTYPqLpXNu1CN2ANIXEICcQ qjHneGw6hiMtqxkyBbgQP11eRuF6cE9FRTeLroIgQpoa8gepYauEMGh9mQ6Y71CY JgBgWUnUg6L7fQHh/PdVS1dUeRMLbgBtoDDegtPdHw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrudejfedgudefjecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpeffhffvuffkgggtugfgsehtkeertddttdejnecuhfhrohhmpeetlhhvrghr ohcujfgvrhhrvghrrgcuoegrlhhvhhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhgqe enucggtffrrghtthgvrhhnpeevleeufeevudffjeetkeevteeuieehjeelfeeludetfedu veelieevgeekgfegfeenucffohhmrghinhepsghlrghmvgdrihhntgdpvghnthgvrhhprh hishgvuggsrdgtohhmnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghi lhhfrhhomheprghlvhhhvghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgh X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Mon, 11 Jul 2022 15:30:24 -0400 (EDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 6A8A2363; Mon, 11 Jul 2022 18:31:38 +0200 (CEST) Date: Mon, 11 Jul 2022 18:31:38 +0200 From: Alvaro Herrera To: Pg Hackers Subject: annoyance with .git-blame-ignore-revs Message-ID: <20220711163138.o72evdeus5f5yy5z@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk I like the ignore-revs file, but I run into a problem with my setup: because I keep checkouts of all branches as worktrees, then all branches share the same .git/config file. So if I put the recommended stanza for [blame] in it, then 'git blame' complains in branches older than 13, since those don't have the file: $ git blame configure fatal: could not open object name list: .git-blame-ignore-revs My first workaround was to add empty .git-blame-ignore-revs in all checkouts. This was moderately ok (shrug), until after a recent `tig` upgrade the empty file started to show up in the history as an untracked file. So I'm now by the second workaround, which is to move the [blame] section of config to a separate file, and use a [includeIf] sections like this: [includeIf "onbranch:master"] path=config.blame.inc [includeIf "onbranch:REL_1{4,5,6,7,8,9}_STABLE"] path=config.blame.inc [includeIf "onbranch:REL_2*_STABLE"] path=config.blame.inc This is quite ugly, and it doesn't work at all if I run `git blame` in a worktree that I create for development purposes (I don't name those after the upstream PG branch they're based on). Anybody has any idea how to handle this better? A viable option would be to backpatch the addition of .git-blame-ignore-revs to all live branches. Would that bother anyone? -- Álvaro Herrera Breisgau, Deutschland — https://www.EnterpriseDB.com/