Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755703AbZAMU0Z (ORCPT ); Tue, 13 Jan 2009 15:26:25 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753472AbZAMU0M (ORCPT ); Tue, 13 Jan 2009 15:26:12 -0500 Received: from yw-out-2324.google.com ([74.125.46.31]:10923 "EHLO yw-out-2324.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754197AbZAMU0K (ORCPT ); Tue, 13 Jan 2009 15:26:10 -0500 Message-ID: Date: Tue, 13 Jan 2009 15:26:09 -0500 From: "Kyle Moffett" To: "Christian Borntraeger" Subject: Re: current git kernel has strange problems during bisect Cc: "Linus Torvalds" , "Sam Ravnborg" , "Johannes Schindelin" , git@vger.kernel.org, "Linux Kernel Mailing List" In-Reply-To: <200901112239.20306.borntraeger@de.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200901111602.53082.borntraeger@de.ibm.com> <20090111194258.GA4840@uranus.ravnborg.org> <200901112239.20306.borntraeger@de.ibm.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1354 Lines: 40 On Sun, Jan 11, 2009 at 4:39 PM, Christian Borntraeger wrote: > In my opinion we should really avoid subtree merges in the future as a curtesy > to people who do the uncool work of testing, problem tracking and bisecting. > As an alternative, you can relatively easily rewrite the following independent histories: A -- B -- C X -- Y -- Z To look like this: A -- B -- C -- X' -- Y' -- Z' Where X' is (C + sub/dir/X), Y' is (C + sub/dir/Y), etc... Assuming the following: "master" branch points to commit C "child" branch points to commit Z "${KIDSTART}" is the SHA1 id of commit X echo "${KIDSTART} $(git rev-parse --verify master)" >>.git/info/grafts git filter-branch --index-filter 'git read-tree master && git read-tree --prefix="sub/dir/" "${GIT_COMMIT}"' -- master..child The one downside is then somebody actually has to *test* those commits when doing a bisect, even though they did not materially change anything. The upside is that there isn't any "what the hell just happened?" when you *do* end up in the newly-created branch. Cheers, Kyle Moffett -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/