From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jim Porter Newsgroups: gmane.emacs.bugs Subject: bug#68691: 30.0.50; [WISHLIST] Make it easier to conform to desired commit message format Date: Fri, 26 Jan 2024 10:44:31 -0800 Message-ID: <0bc92736-be1d-f5da-645b-56edf4af193f@gmail.com> References: <87r0i6sl68.fsf@gmail.com> <87il3gopdq.fsf@yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32663"; mail-complaints-to="usenet@ciao.gmane.io" Cc: No Wayman , 68691@debbugs.gnu.org To: Po Lu , Stefan Kangas Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jan 26 19:45:24 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rTRCe-0008Ks-IT for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 26 Jan 2024 19:45:24 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rTRCE-000406-4H; Fri, 26 Jan 2024 13:44:58 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rTRCC-0003zj-6P for bug-gnu-emacs@gnu.org; Fri, 26 Jan 2024 13:44:56 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rTRCB-0000eN-V3 for bug-gnu-emacs@gnu.org; Fri, 26 Jan 2024 13:44:55 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rTRCI-0006vY-8s for bug-gnu-emacs@gnu.org; Fri, 26 Jan 2024 13:45:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Jim Porter Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 26 Jan 2024 18:45:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68691 X-GNU-PR-Package: emacs Original-Received: via spool by 68691-submit@debbugs.gnu.org id=B68691.170629468826592 (code B ref 68691); Fri, 26 Jan 2024 18:45:02 +0000 Original-Received: (at 68691) by debbugs.gnu.org; 26 Jan 2024 18:44:48 +0000 Original-Received: from localhost ([127.0.0.1]:52764 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rTRC4-0006uq-4R for submit@debbugs.gnu.org; Fri, 26 Jan 2024 13:44:48 -0500 Original-Received: from mail-pl1-x62b.google.com ([2607:f8b0:4864:20::62b]:44090) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rTRC1-0006ub-R7 for 68691@debbugs.gnu.org; Fri, 26 Jan 2024 13:44:46 -0500 Original-Received: by mail-pl1-x62b.google.com with SMTP id d9443c01a7336-1d748d43186so4920825ad.0 for <68691@debbugs.gnu.org>; Fri, 26 Jan 2024 10:44:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706294673; x=1706899473; darn=debbugs.gnu.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:mime-version:date:message-id:from:to:cc :subject:date:message-id:reply-to; bh=UALoa8YSs28cHzBjA/8mQ9J8aTXuUpbBa1pwYPlvEQ8=; b=f6Td7mhVZNSC4QwJAt8EFqM4RDnFX7o7B6WAVe0I12N+kV/5nMcZoP2Zibigho972w CzAOPiVlPk3NM5TST83VeK6OPDc3tJ3ciUgrTA+k6BsjuPnXwAJf470JsP0E8A2XekkP 3y3Pkqbz9UFi8BeNf6/tIqf3b0+w0XZLvwE+1JXl/l8wuBuLjOVonTCwnXknH6lnfXO4 A6oOerhnLZiPU95v/uLS1/11S2iQVCnSEKjk26CTf3NrTRSjZktBuCAlMuxsNZh/71Ug atuIPv+4lZbrkTswlRLg1zRPPOLJypB43gm7H+dRfdaCYUOK/A5Ko5tcVXGlSSLXdsFK sIcw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706294673; x=1706899473; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=UALoa8YSs28cHzBjA/8mQ9J8aTXuUpbBa1pwYPlvEQ8=; b=cG/fWDZK9OgxuCndRoOMZgo5Lnq7+LpKWSpGdN7s3OBvNq7leU7Fh0uXGA+O8UIMOK DaxenYJhUY0EPqX5VIb5rHev6DnvZzmEixkylnrmLcOZA9t8hXQ2zppnoo85ML5EGcFA mjtub4o7JF9ch/Y1gLTryNu7AzAQuP88+llhIc8SSDl95T0Dw4rFnyQX5DKXAee5KvCO 1qYnWWE+QKMTEK//VqE0NcdOie+oS/9Y2xdez8F3eSIHr1Miyq8Is76TefaQvJpUXNcN IeInlbtjRDK7wZGkS0dsEZwiFIS8ynI0xFcqX8FC5QrKi1NfyQnSKQaC9hAY0nvIKUZT 19Iw== X-Gm-Message-State: AOJu0YxVNxM+MulGLMgU63bLSDOra88vsKp2U0Rxbv6AsihRAsDhYEiT YGveek36JObG/EjCoF1F/vjzdFwoAx2fbH/cvY21hKKRWVU4oxVj X-Google-Smtp-Source: AGHT+IG+wYWdG2SK49RHyNFhlT533bKw7u2z1zKzmqcUVNgzl92W/D6ZSdzvURZZUbClVM+2ZgJNtw== X-Received: by 2002:a17:902:eaca:b0:1d4:c98d:40de with SMTP id p10-20020a170902eaca00b001d4c98d40demr172635pld.71.1706294673120; Fri, 26 Jan 2024 10:44:33 -0800 (PST) Original-Received: from [192.168.1.2] (076-168-148-233.res.spectrum.com. [76.168.148.233]) by smtp.googlemail.com with ESMTPSA id lc8-20020a170902fa8800b001d71c8871e1sm1251907plb.172.2024.01.26.10.44.32 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 26 Jan 2024 10:44:32 -0800 (PST) Content-Language: en-US In-Reply-To: <87il3gopdq.fsf@yahoo.com> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:278943 Archived-At: On 1/25/2024 5:27 PM, Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors wrote: > A hook run before each commit is a good idea, and I plan to study how > they are written. We already have a few hooks for this, including a `commit-msg` hook that checks for various formatting issues, and `post-commit` + `pre-push` hooks to verify that the files listed in the message match the diff. (There are some annoying technical reasons for using `post-commit` and `pre-push` for this, which are documented in their implementations under build-aux/git-hooks/.) You could probably consult the existing implementations to see how to do things, and improve them with any extra features that might help here.