From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Teemu Likonen Newsgroups: gmane.emacs.devel Subject: Re: Workflow to accumulate individual changes? Date: Fri, 01 Jan 2010 22:07:01 +0200 Message-ID: <874on537yy.fsf@iki.fi> References: <87637of4y8.fsf@kobe.laptop> <87oclfdzs2.fsf@kobe.laptop> <87hbr6jwsy.fsf@telefonica.net> <83my0yfc9g.fsf@gnu.org> <838wchgais.fsf@gnu.org> <878wchfxcn.fsf@red-bean.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1262376475 20835 80.91.229.12 (1 Jan 2010 20:07:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 1 Jan 2010 20:07:55 +0000 (UTC) Cc: ofv@wanadoo.es, Eli Zaretskii , Andreas Schwab , emacs-devel@gnu.org To: Karl Fogel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jan 01 21:07:47 2010 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.50) id 1NQnmj-00016i-Cz for ged-emacs-devel@m.gmane.org; Fri, 01 Jan 2010 21:07:45 +0100 Original-Received: from localhost ([127.0.0.1]:55149 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NQnmj-0003Zg-TL for ged-emacs-devel@m.gmane.org; Fri, 01 Jan 2010 15:07:45 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NQnmf-0003ZT-2E for emacs-devel@gnu.org; Fri, 01 Jan 2010 15:07:41 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NQnmZ-0003Z0-M8 for emacs-devel@gnu.org; Fri, 01 Jan 2010 15:07:39 -0500 Original-Received: from [199.232.76.173] (port=58162 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NQnmZ-0003Yv-Fz for emacs-devel@gnu.org; Fri, 01 Jan 2010 15:07:35 -0500 Original-Received: from mta-out.inet.fi ([195.156.147.13]:50598 helo=jenni1.inet.fi) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NQnmX-0002K7-0c; Fri, 01 Jan 2010 15:07:33 -0500 Original-Received: from mithlond.local (84.251.132.215) by jenni1.inet.fi (8.5.014) id 4B17DDDA0118406D; Fri, 1 Jan 2010 22:07:17 +0200 Original-Received: from dtw by mithlond.local with local (Exim 4.69) (envelope-from ) id 1NQnm1-00036u-Mb; Fri, 01 Jan 2010 22:07:01 +0200 In-Reply-To: <878wchfxcn.fsf@red-bean.com> (Karl Fogel's message of "Fri, 01 Jan 2010 14:18:00 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) 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:119225 Archived-At: On 2010-01-01 14:18 (-0500), Karl Fogel wrote: > IIUC, in git the commit message is *not* part of the change's > identity, it's just attached to the change, so you can edit the > message later. That's wrong--or your "change's identity" means something I don't understand. In Git commit's author, committer, date, parent commits' SHA1s, referenced tree object's SHA1 and commit message together make the content of a commit object. From this content is calculated the SHA1 of that commit object. If you change any of these the SHA1 of the commit object will be different and hence the whole commit object will be different (i.e. its identity is different). So no, it's not possible to change commit message (or any information the commit object contains) without making it a different commit. There is a related feature, though. New Git versions have "git notes" command which allows user to add additional notes to commits. Such extra notes can be added and removed freely and "git log" prints them after the commit message. Notes can be sent between repositories but currently it doesn't happen automatically with usual pull/push commands. http://www.kernel.org/pub/software/scm/git/docs/git-notes.html