From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?utf-8?B?xaB0xJtww6FuIE7Em21lYw==?= Newsgroups: gmane.emacs.devel Subject: Re: support for git commit --amend/--signoff Date: Fri, 11 Jun 2010 18:14:18 +0200 Message-ID: <874oh94kdh.fsf@gmail.com> References: <87hblavx6f.fsf@mail.jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1276272916 18914 80.91.229.12 (11 Jun 2010 16:15:16 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 11 Jun 2010 16:15:16 +0000 (UTC) Cc: Juri Linkov , Dan Nicolaescu , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jun 11 18:15:14 2010 connect(): No such file or directory Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ON6sv-0000Mz-6u for ged-emacs-devel@m.gmane.org; Fri, 11 Jun 2010 18:15:09 +0200 Original-Received: from localhost ([127.0.0.1]:51336 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ON6st-0007NZ-Pq for ged-emacs-devel@m.gmane.org; Fri, 11 Jun 2010 12:15:07 -0400 Original-Received: from [140.186.70.92] (port=35076 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ON6sm-0007Kz-8W for emacs-devel@gnu.org; Fri, 11 Jun 2010 12:15:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1ON6sl-0000Ee-4L for emacs-devel@gnu.org; Fri, 11 Jun 2010 12:15:00 -0400 Original-Received: from mail-fx0-f41.google.com ([209.85.161.41]:39181) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1ON6si-0000Dy-35; Fri, 11 Jun 2010 12:14:56 -0400 Original-Received: by fxm19 with SMTP id 19so922736fxm.0 for ; Fri, 11 Jun 2010 09:14:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject :in-reply-to:references:user-agent:date:message-id:mime-version :content-type:content-transfer-encoding; bh=vJ4LslOfdhMCMJUQM94qJ8GL5nBNd8cbcfRf4VNJe7Q=; b=OpngKYjBkpvoIfPXpGLEtLkOFgkQIx5nLbU7V1msm0MfUrh6w9MwDFtyaKZsQ5Kydh J45lKOBUV7RXoRarjY13QxWTAz6RTahpU/pvWXqa8dbHkrlWdZJSmgwZ1bDr83+NcgY7 nFTnHm0QgQnWyCozbgvObTeArfi4TuLsUuz1c= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:in-reply-to:references:user-agent:date :message-id:mime-version:content-type:content-transfer-encoding; b=FOwkJG7Hf+3AAKA0kFOqweF9JYNhHk4rI5U9MeJKuplsoooxPXw+Ld3F49TfkejvnQ eiSDlvYSALZ0KvBjxpBT0PfVkLNWMv4WfHsNKcQdBq5nGrblZP3uEyHLEzWZkxtEV57u OrqDj2HF2BlpGzOGzTUtNnNtclHb0lMHfZz0s= Original-Received: by 10.86.6.5 with SMTP id 5mr3649569fgf.60.1276272891239; Fri, 11 Jun 2010 09:14:51 -0700 (PDT) Original-Received: from localhost ([88.103.132.186]) by mx.google.com with ESMTPS id 1sm2072094fkt.41.2010.06.11.09.14.49 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 11 Jun 2010 09:14:50 -0700 (PDT) In-Reply-To: (Stefan Monnier's message of "Fri, 11 Jun 2010 10:18:34 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:125746 Archived-At: Stefan Monnier writes: > If we only consider Git's and DaRCS's forms of amend, I'd say that the > "Amend:" header might be a good approach, and that it should specify the > revision/patch that's amended. So for Git, you could have a command > that inserts "Amend: " and then the backend could check that the > SHA-1 is the right one (which would avoid accidental use). No idea about Darcs, but `git commit --amend' always changes the tip of the current branch, you can't specify another commit to amend; so the above would not be useful in this case (same for --signoff). =C5=A0t=C4=9Bp=C3=A1n