From: David Kastrup Subject: Re: Submit/Workflow question Date: Sun, 29 Jul 2007 18:03:29 +0200 Message-ID: <856443w626.fsf@lola.goethe.zz> References: <85abtfw6d5.fsf@lola.goethe.zz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii To: git@vger.kernel.org X-From: git-owner@vger.kernel.org Sun Jul 29 18:04:12 2007 Return-path: Envelope-to: gcvg-git@gmane.org Received: from vger.kernel.org ([209.132.176.167]) by lo.gmane.org with esmtp (Exim 4.50) id 1IFBFZ-0000dF-8o for gcvg-git@gmane.org; Sun, 29 Jul 2007 18:04:09 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1762921AbXG2QD6 (ORCPT ); Sun, 29 Jul 2007 12:03:58 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1762840AbXG2QD6 (ORCPT ); Sun, 29 Jul 2007 12:03:58 -0400 Received: from mail-in-10.arcor-online.net ([151.189.21.50]:35151 "EHLO mail-in-10.arcor-online.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1762898AbXG2QD5 (ORCPT ); Sun, 29 Jul 2007 12:03:57 -0400 Received: from mail-in-06-z2.arcor-online.net (mail-in-06-z2.arcor-online.net [151.189.8.18]) by mail-in-10.arcor-online.net (Postfix) with ESMTP id 4045D1F56EE for ; Sun, 29 Jul 2007 18:03:56 +0200 (CEST) Received: from mail-in-11.arcor-online.net (mail-in-11.arcor-online.net [151.189.21.51]) by mail-in-06-z2.arcor-online.net (Postfix) with ESMTP id CB56D5BD63 for ; Sun, 29 Jul 2007 18:03:55 +0200 (CEST) Received: from lola.goethe.zz (dslb-084-061-017-015.pools.arcor-ip.net [84.61.17.15]) by mail-in-11.arcor-online.net (Postfix) with ESMTP id 9737712FEC for ; Sun, 29 Jul 2007 18:03:55 +0200 (CEST) Received: by lola.goethe.zz (Postfix, from userid 1002) id 68E001C39595; Sun, 29 Jul 2007 18:03:29 +0200 (CEST) In-Reply-To: <85abtfw6d5.fsf@lola.goethe.zz> (David Kastrup's message of "Sun\, 29 Jul 2007 17\:56\:54 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux) X-Virus-Scanned: ClamAV 0.91.1/3804/Sun Jul 29 06:09:31 2007 on mail-in-11.arcor-online.net X-Virus-Status: Clean Sender: git-owner@vger.kernel.org Precedence: bulk X-Mailing-List: git@vger.kernel.org Archived-At: David Kastrup writes: > Suppose that I have created a half-baked patch A suiting my personal > needs and went on from there, having something like > > ...->A->B->... > > Now at some point of time I decide that really A should be made fit > for submission. Basically, I'd want to do > git-reset --hard A > [edit some] > git-commit --amend -a > git-format-patch HEAD~1 > > in order to arrive at a nice submittable patch. However, I don't want > to lose B and the following stuff, and the resulting HEAD should > include the improved of A (it is fine if that needs additional steps, > and it is fine if it is just HEAD that gets the fixed version, not B). > > So how to do this? Branch at A^, rebase on A, fix the stuff, commit > with --amend -a, rebase on master, rename the temporary branch to > master (killing the old master), format and submit the patch? > > Or is there some bad thinko in there? Or is this too complicated? Uh, too many rebases. I mean: Branch at A^, merge A, fix the stuff, commit with --amend -a, merge master, rename the temporary branch to master (killing the old master), format and submit the patch? -- David Kastrup, Kriemhildstr. 15, 44793 Bochum