From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp1.linuxfoundation.org (smtp1.linux-foundation.org [172.17.192.35]) by mail.linuxfoundation.org (Postfix) with ESMTPS id 902558CC for ; Fri, 15 Jul 2016 07:36:53 +0000 (UTC) Received: from mail-pf0-f182.google.com (mail-pf0-f182.google.com [209.85.192.182]) by smtp1.linuxfoundation.org (Postfix) with ESMTPS id 3B992FD for ; Fri, 15 Jul 2016 07:36:53 +0000 (UTC) Received: by mail-pf0-f182.google.com with SMTP id c2so38973051pfa.2 for ; Fri, 15 Jul 2016 00:36:53 -0700 (PDT) Date: Fri, 15 Jul 2016 00:36:50 -0700 From: Dmitry Torokhov To: NeilBrown Message-ID: <20160715073650.GB39664@dtor-ws> References: <20160714031753.GA28722@kroah.com> <20160714100603.GJ9976@sirena.org.uk> <20160715002239.GA31603@kroah.com> <5788337F.8000500@roeck-us.net> <20160715014103.GA5791@kroah.com> <578850EB.3090109@roeck-us.net> <20160715042938.GA5527@kroah.com> <874m7rcus8.fsf@notabene.neil.brown.name> <1468564337.2420.37.camel@HansenPartnership.com> <871t2vcrle.fsf@notabene.neil.brown.name> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <871t2vcrle.fsf@notabene.neil.brown.name> Cc: James Bottomley , "ksummit-discuss@lists.linuxfoundation.org" , Trond Myklebust Subject: Re: [Ksummit-discuss] [CORE TOPIC] kernel unit testing List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Fri, Jul 15, 2016 at 05:01:33PM +1000, NeilBrown wrote: > On Fri, Jul 15 2016, James Bottomley wrote: > > > On Fri, 2016-07-15 at 15:52 +1000, NeilBrown wrote: > >> I do find quilt useful when backporting a series of patches so that I > >> can resolve the conflicts on each patch individually and move > >> backwards and forwards through the list of patches. I don't think > >> git has an easy way to store a branch of patches-that-I-need-to-apply > >> and to then give me one at a time, removing them from the branch. I > >> could use 'stgit' for that if necessary, though it is very tempting > >> to write something that is better integrated with git. > > > > Git cherry and git cherry-pick can do this. Git cherry-pick can take a > > range of patches to apply, so you can select a bunch of patches to > > backport or otherwise move all at once. Git cherry can tell you (to > > within an approximation, since it uses matching) what patches are > > common between two branches even if they have differing commit ids. > > > > The format is a bit frightening if you're not used to it, which is why > > stgit may be a better user experience, but you can do it with basic > > git. > > I wasn't aware of "git cherry". It certainly could be useful, but based > on the man page it would get confused by modifications made to resolve > conflicts. > If "get cherry-pick" auto-added an "upstream HASHID" line to the comment, and "git cherry-pick -x " does this. > if "git cherry" used that to understand that two commits where "the > same", then it would be a lot closer. That would be nice. > > Then a command, maybe "git cherry-pick" with no args, which did the > equivalent of: > git cherry-pick `git cherry | head -n1` > > would almost work for "quilt push", and the "git rerere" thing (which I > almost understand) would mean that "git reset --hard HEAD^" would work > for "git pop" (or "git cherry-pop"). > > I'd probably want some way to record the upstream and limit commits for > a particular session. e.g. > git cherry start XX YY > > then "git cherry-pick" and "git cherry-pop" would DoTheRightThing. > Maybe. > Thanks. -- Dmitry