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 1k6gI0-0004VI-BH for pgsql-hackers@arkaria.postgresql.org; Fri, 14 Aug 2020 20:27:00 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1k6gHy-0002tA-3z for pgsql-hackers@arkaria.postgresql.org; Fri, 14 Aug 2020 20:26:58 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k6gHx-0002t3-Po for pgsql-hackers@lists.postgresql.org; Fri, 14 Aug 2020 20:26:57 +0000 Received: from mail-qt1-x843.google.com ([2607:f8b0:4864:20::843]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1k6gHu-0006Md-T3 for pgsql-hackers@postgresql.org; Fri, 14 Aug 2020 20:26:57 +0000 Received: by mail-qt1-x843.google.com with SMTP id k18so7889091qtm.10 for ; Fri, 14 Aug 2020 13:26:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=iZO3p13paiPNcIMEWrum3C4kHGchoBSLmEgoexMwuXY=; b=vJfAi2OUGwb7fzW1AmnzJQ/P8Y/GQjhmJUm35p0N6+yjMO7ICYdb78cUGIBtnpRfeh 9iefye5/Ja7tOQFeK0rFXyRoNSXzBPIWYPuJKwRtwdGOzRFruMsHoCeaOXBwh8v7PBI9 kXI2tk2hN6Sl05e0KvZ/SXdO26rmK2tBCKi7YX6CUS5IkV4Yx1j13qjDlkuhAfOxvcXN t3V0udto4WOcJvW3ygaK3IOCb8VV/eP5F6YLpo1zc+SHAV4PoATYutpW308fqwK1LqTs qgb7vA6WHN/lS5M1Y7AQ8qpb1yLqRkv2pfNgCNZkbIZQVoSpeQpiJXiuYd1QHEVr06JM UngQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=iZO3p13paiPNcIMEWrum3C4kHGchoBSLmEgoexMwuXY=; b=LJDbcEhHvBXfreAmO0c/ip9nBJHkvyAjobcjY0l03O8WbDbVCN7HkGPbVcy7weRJ57 BkJYMXsQCC91ZR2Mq+roEczSYd4quO4QetnTKd/rMNjwqY1GqCBBzk+5Q7SWHU675zKK RJAeUhlKgR5u0jjB1wGSfJsT8Sia1RUU/OLC8aAWu/cKgJLbFMrQRCb7xzofrASSnVsh 84dDRZpZ5c1l2x8xtSy7dxHEMS8/9ya6QMw92fgWjQTJFiFxMQQx0Qv+NlkBF4ZJjI8y nApvkGlmunr/abdxO3tLL3QUT1fS7SLotnBIznITb2vKBucx6I31Eh0VFm84MgiFJa2H 3QQQ== X-Gm-Message-State: AOAM5334qQc1Ok2V5jQYkZ1MkPnewsE8ZX2JXptYLN8EHWK3+WFJwSFq 0lScxui6Dg1HK/WeccwaUk8X4A== X-Google-Smtp-Source: ABdhPJwBt2/EZBaK2sAoJ/GQrfz/8bGC4UlF5RVM/JbYsa0Vwo02fEn+CW4SKrgY6j+eB3axDCMJgg== X-Received: by 2002:ac8:1729:: with SMTP id w38mr3684896qtj.103.1597436813248; Fri, 14 Aug 2020 13:26:53 -0700 (PDT) Received: from perhan.alvh.no-ip.org ([190.95.19.47]) by smtp.gmail.com with ESMTPSA id 95sm10570319qtc.29.2020.08.14.13.26.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Aug 2020 13:26:52 -0700 (PDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 6E2D82A151C; Fri, 14 Aug 2020 16:26:51 -0400 (-04) Date: Fri, 14 Aug 2020 16:26:51 -0400 From: Alvaro Herrera To: Magnus Hagander Cc: Stephen Frost , Tom Lane , Noah Misch , Jesse Zhang , Andres Freund , PostgreSQL-development Subject: Re: run pgindent on a regular basis / scripted manner Message-ID: <20200814202651.GA31108@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2020-Aug-13, Magnus Hagander wrote: > That is: > 1. Whenever a patch is pushed on master on the main repo a process kicked > off (or maybe wait 5 minutes to coalesce multiple patches if there are) > 2. This process checks out master, and runs pgindent on it > 3. When done, this gets committed to a new branch (or just overwrites an > existing branch of course, we don't need to maintain history here) like > "master-indented". This branch can be in a different repo, but one that > starts out as a clone of the main one > 4. A committer (any committer) can then on regular basis examine the > differences by fetch + diff. If they're happy with it, cherry pick it in. > If not, figure out what needs to be done to adjust it. Sounds good -- for branch master. Yesterday I tried to indent some patch across all branches, only to discover that I'm lacking the pg_bsd_indent necessary for the older ones. I already have two, but apparently I'd need *four* different versions with current branches (1.3, 2.0, 2.1, 2.1.1) -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services