From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1762687AbZAPEeg (ORCPT ); Thu, 15 Jan 2009 23:34:36 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755689AbZAPEeZ (ORCPT ); Thu, 15 Jan 2009 23:34:25 -0500 Received: from chilli.pcug.org.au ([203.10.76.44]:47631 "EHLO smtps.tip.net.au" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755277AbZAPEeY (ORCPT ); Thu, 15 Jan 2009 23:34:24 -0500 Date: Fri, 16 Jan 2009 15:34:17 +1100 From: Stephen Rothwell To: Andrew Morton Cc: linux-next@vger.kernel.org, Prarit Bhargava , David Howells , KOSAKI Motohiro , LKML , linux-ia64 , Sam Ravnborg , Kyle McMartin , Tony Luck , Trond Myklebust Subject: Re: linux-next: build problem with nfs tree (Was: Re: [mmotm][PATCH] fix ia64 build error) Message-Id: <20090116153417.891297ca.sfr@canb.auug.org.au> In-Reply-To: <20090116134930.68e783aa.sfr@canb.auug.org.au> References: <20090115200315.EBE3.KOSAKI.MOTOHIRO@jp.fujitsu.com> <20090115093514.f3f6b8ff.akpm@linux-foundation.org> <20090116124949.7828a559.sfr@canb.auug.org.au> <20090115175917.8e0ae536.akpm@linux-foundation.org> <20090116134930.68e783aa.sfr@canb.auug.org.au> X-Mailer: Sylpheed 2.5.0 (GTK+ 2.12.11; i486-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Andrew, On Fri, 16 Jan 2009 13:49:30 +1100 Stephen Rothwell wrote: > > On Thu, 15 Jan 2009 17:59:17 -0800 Andrew Morton wrote: > > > > I do most of my gitting across a DSL connection. It makes GUIs > > painful. > > Yeah, I will think on it ... With the help of Paul Mackerras, I have come up with the shell script below. You run it with the commit id, the tag of the tree you care about (e.g. next-20080115)(it defaults to the current top of tree) and the name of the branch the represents Linus' tree (default to origin/master). It will spit out the (or a) tree that contains the commit you asked about. ------------------------------------------------------------------------- #!/bin/bash commit=$1 [ "$commit" ] || { echo "$0: [ []]" 1>&2 exit 1 } top=$2 [ "$top" ] || top=HEAD linus=$3 [ "$linus" ] || linus=origin/master base=$(git merge-base "$linus" "$top") git log --first-parent --pretty='format:%H %P' "$base".."$top" | while read m p1 p2 do [ "$p2" ] || continue git rev-list $base..$p2 | grep -q "$commit" || continue branch=$(git show $m | sed -n "s/[ ]*Merge .* '\([^']*\)'/\1/p") tree=${branch%%/*} [ "$tree" = "quilt" ] && tree=${branch##*/} echo "$tree" break done exit 0 ---------------------------------------------------------------------------- -- Cheers, Stephen Rothwell sfr@canb.auug.org.au http://www.canb.auug.org.au/~sfr/