From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.devel Subject: Re: non-fast-forward pushes to Emacs Git repo "scratch" branches? Date: Thu, 23 Jun 2016 10:18:12 -0400 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <87ziqcxa3f.fsf@lifelogs.com> References: <87fusc0w33.fsf@lifelogs.com> <871t3revii.fsf@russet.org.uk> Reply-To: emacs-devel@gnu.org NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1466691562 30214 80.91.229.3 (23 Jun 2016 14:19:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 23 Jun 2016 14:19:22 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jun 23 16:19:13 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1bG5TL-0002VS-Rj for ged-emacs-devel@m.gmane.org; Thu, 23 Jun 2016 16:19:11 +0200 Original-Received: from localhost ([::1]:36933 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bG5TL-0008EF-3e for ged-emacs-devel@m.gmane.org; Thu, 23 Jun 2016 10:19:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55224) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bG5Si-0008E9-Jc for emacs-devel@gnu.org; Thu, 23 Jun 2016 10:18:33 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bG5Sc-000520-Ft for emacs-devel@gnu.org; Thu, 23 Jun 2016 10:18:31 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:49335) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bG5Sc-00051E-8w for emacs-devel@gnu.org; Thu, 23 Jun 2016 10:18:26 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1bG5SY-0001UH-Sf for emacs-devel@gnu.org; Thu, 23 Jun 2016 16:18:23 +0200 Original-Received: from c-98-229-60-157.hsd1.ma.comcast.net ([98.229.60.157]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 23 Jun 2016 16:18:22 +0200 Original-Received: from tzz by c-98-229-60-157.hsd1.ma.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 23 Jun 2016 16:18:22 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 27 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: c-98-229-60-157.hsd1.ma.comcast.net X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6; d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" Mail-Copies-To: never User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) Cancel-Lock: sha1:zPER05pMqslxEFK/duzI+/3DioA= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:204686 Archived-At: On Mon, 20 Jun 2016 16:21:25 +0100 phillip.lord@russet.org.uk (Phillip Lord) wrote: PL> Stefan Monnier writes: >>> Can the Emacs Git repo allow non-fast-forward pushes to "scratch/*" >>> branches? >> >> No, because the non-fast-forward constraint is applied globally. >> But you can delete a branch and then push a new branch under the same >> name, with the same end result. PL> It is possible to enforce this on a per branch basis. Just applying it PL> on master and anything starting with "emacs" (for release branches) PL> would do the trick. PL> It would also be possible to prevent, for example, accidental deletions PL> of emacs-25, or master as well as enforce the "don't check into emacs-25 PL> without asking" rule. I'd be excited to see these improvements. Another is to enforce the commit message formatting. I don't have access to the relevant infrastructure, unfortunately. I imagine it's a matter of modifying the receive hook scripts. Can I help make it happen? Thanks Ted